CLOUD: Add icons in "/files" list

This commit is contained in:
Alexander Tkachev 2016-07-15 13:46:43 +06:00
parent 626d85ea49
commit 06ccfd4b9a
11 changed files with 49 additions and 15 deletions

View file

@ -17,12 +17,14 @@ def buildArchive(archiveName):
print ("Building '" + archiveName + "' archive:")
os.chdir(archiveName)
filenames = os.listdir('.')
filenames.sort()
for filename in filenames:
if os.path.isfile(filename) and filename.endswith(ARCHIVE_FILE_EXTENSIONS):
zf.write(filename, './' + filename)
print (" Adding file: " + filename)
directories = ['.', './icons']
for d in directories:
filenames = os.listdir(d)
filenames.sort()
for filename in filenames:
if os.path.isfile(d + '/' + filename) and filename.endswith(ARCHIVE_FILE_EXTENSIONS):
zf.write(d + '/' + filename, d + '/' + filename)
print (" Adding file: " + d + '/' + filename)
os.chdir('../')