2
3
mirror of https://foundry.openuru.org/gitblit/r/CWE-ou-minkata.git synced 2025-07-14 02:27:40 -04:00

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

This commit is contained in:
Christian Walther
2011-06-29 22:26:36 +02:00
parent 36b7513aa1
commit be3a8fa3c7

View File

@ -18,6 +18,10 @@ def create_resource_dat(resfilepath, inrespath):
## Get list of files to archive ## Get list of files to archive
resourceList = glob.glob(os.path.join(inrespath, "*")) resourceList = glob.glob(os.path.join(inrespath, "*"))
resourceList.sort() 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: if len(resourceList) == 0:
print("No files found in '{0}'. Quitting.\n".format(inrespath)) print("No files found in '{0}'. Quitting.\n".format(inrespath))
return False return False