Version 1.6.3 - fix validatePath error (issue 166) (#167)

This commit is contained in:
Wuff 2020-05-20 19:01:43 +01:00 committed by GitHub
parent 55b2ac83d4
commit c9dd381037
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 4 deletions

View File

@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<addon id="script.xbmcbackup"
name="Backup" version="1.6.2" provider-name="robweber">
name="Backup" version="1.6.3" provider-name="robweber">
<requires>
<import addon="xbmc.python" version="3.0.0"/>
<import addon="script.module.dateutil" version="2.8.0" />
@ -89,12 +89,14 @@
<screenshot>resources/images/screenshot3.jpg</screenshot>
<screenshot>resources/images/screenshot4.jpg</screenshot>
</assets>
<news>Version 1.6.2
<news>Version 1.6.3
- fixed validatePath error (issue #166)
Version 1.6.2
- replaced PNG screenshots with JPG
Version 1.6.1
- added file transfer size to progress bar
- progress bar now based on transfer size, not total file count
- fixed rotate backups error - thanks @AnonTester
</news>
</news>
</extension>
</addon>

View File

@ -571,7 +571,7 @@ class FileManager:
if(recurse):
# create all the subdirs first
for aDir in dirs:
dirPath = xbmc.validatePath(xbmc.translatePath(directory + self.pathSep + aDir))
dirPath = xbmcvfs.validatePath(xbmc.translatePath(directory + self.pathSep + aDir))
file_ext = aDir.split('.')[-1]
# check if directory is excluded