mirror of
https://github.com/robweber/xbmcbackup.git
synced 2024-11-15 04:45:49 +01:00
don't need these checks anymore
This commit is contained in:
parent
e6215dde51
commit
647bd8811b
@ -511,9 +511,7 @@ class FileManager:
|
|||||||
dirPath = xbmc.translatePath(directory + "/" + aDir)
|
dirPath = xbmc.translatePath(directory + "/" + aDir)
|
||||||
file_ext = aDir.split('.')[-1]
|
file_ext = aDir.split('.')[-1]
|
||||||
|
|
||||||
#don't backup your own zip file
|
self.addFile("-" + dirPath)
|
||||||
if(aDir != "xbmc_backup_temp.zip"):
|
|
||||||
self.addFile("-" + dirPath)
|
|
||||||
|
|
||||||
#catch for "non directory" type files
|
#catch for "non directory" type files
|
||||||
shouldWalk = True
|
shouldWalk = True
|
||||||
@ -527,10 +525,9 @@ class FileManager:
|
|||||||
|
|
||||||
#copy all the files
|
#copy all the files
|
||||||
for aFile in files:
|
for aFile in files:
|
||||||
if(aFile != 'xbmc_backup_temp.zip'):
|
utils.log(aFile)
|
||||||
utils.log(aFile)
|
filePath = xbmc.translatePath(directory + "/" + aFile)
|
||||||
filePath = xbmc.translatePath(directory + "/" + aFile)
|
self.addFile(filePath)
|
||||||
self.addFile(filePath)
|
|
||||||
|
|
||||||
def addFile(self,filename):
|
def addFile(self,filename):
|
||||||
try:
|
try:
|
||||||
|
Loading…
Reference in New Issue
Block a user