Ignroe annoying macOS related folders when enumerating

This commit is contained in:
2017-08-22 11:35:11 +02:00
parent 10aa91149c
commit 0a8679a506

View File

@@ -236,6 +236,8 @@ def latestDirGet(path):
"""
max_file = None
for f in os.listdir(path):
if f in (".DS_Store", ):
continue
x = int(f)
if not max_file or x > max_file:
max_file = x