Commit 650e1f28 authored by Michael Murtaugh's avatar Michael Murtaugh
Browse files

Sconstruct deals with empty folders

parent 4a3e9fe8
......@@ -140,10 +140,11 @@ def make_folder_meta (target, source, env):
cd['link'] = urlquote(os.path.relpath(src.path, path))
cd_mtime_dt = None
if 'last_modification' in cdinfo:
cd['last_modification'] = cdinfo['last_modification']
cd_mtime_dt = datetime.datetime.fromisoformat(cdinfo['last_modification'])
if last_modification is None or cd_mtime_dt > last_modification:
if last_modification is None or (cd_mtime_dt is not None and cd_mtime_dt > last_modification):
last_modification = cd_mtime_dt
elif (os.path.dirname(src.path) == path):
files += 1
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment