mirror of
https://github.com/robweber/xbmcbackup.git
synced 2024-12-22 22:15:23 +01:00
best test we can do for zip file without looking in them
This commit is contained in:
parent
80f4e6bdfb
commit
45b6cea057
@ -83,11 +83,11 @@ class XbmcBackup:
|
|||||||
|
|
||||||
for aFile in files:
|
for aFile in files:
|
||||||
file_ext = aFile.split('.')[-1]
|
file_ext = aFile.split('.')[-1]
|
||||||
|
folderName = aFile.split('.')[0]
|
||||||
if(file_ext == 'zip'):
|
|
||||||
|
if(file_ext == 'zip' and (len(folderName) == 12 or len(folderName) == 8) and str.isdigit(folderName)):
|
||||||
|
|
||||||
#folder may or may not contain time, older versions didn't include this
|
#folder may or may not contain time, older versions didn't include this
|
||||||
folderName = ''
|
|
||||||
if(len(aFile ) > 8):
|
if(len(aFile ) > 8):
|
||||||
folderName = aFile [6:8] + '-' + aFile [4:6] + '-' + aFile [0:4] + " " + aFile [8:10] + ":" + aFile [10:12]
|
folderName = aFile [6:8] + '-' + aFile [4:6] + '-' + aFile [0:4] + " " + aFile [8:10] + ":" + aFile [10:12]
|
||||||
else:
|
else:
|
||||||
|
Loading…
Reference in New Issue
Block a user