Browse Source

Skip the Thumbs.db files that Windows likes to add.

Christian Walther 13 years ago
parent
commit
be3a8fa3c7
  1. 4
      Sources/Plasma/Apps/plClient/external/create_resource_dat.py

4
Sources/Plasma/Apps/plClient/external/create_resource_dat.py vendored

@ -18,6 +18,10 @@ def create_resource_dat(resfilepath, inrespath):
## Get list of files to archive
resourceList = glob.glob(os.path.join(inrespath, "*"))
resourceList.sort()
try:
resourceList.remove(os.path.join(inrespath, "Thumbs.db")) # likely to be there on Windows and likely to be unwanted
except ValueError:
pass
if len(resourceList) == 0:
print("No files found in '{0}'. Quitting.\n".format(inrespath))
return False

Loading…
Cancel
Save