Commit 4a3e9fe8 authored by Michael Murtaugh's avatar Michael Murtaugh
Browse files

Sconstruct deals with empty folders

parent dc604fa2
......@@ -140,8 +140,9 @@ def make_folder_meta (target, source, env):
total_files_by_ext[ext]['count']+=cdinfo['total_files_by_ext'][ext]['count']
total_files_by_ext[ext]['total_bytes']+=cdinfo['total_files_by_ext'][ext]['total_bytes']
cd['link'] = urlquote(os.path.relpath(src.path, path))
cd['last_modification'] = cdinfo['last_modification']
cd_mtime_dt = datetime.datetime.fromisoformat(cdinfo['last_modification'])
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:
last_modification = cd_mtime_dt
elif (os.path.dirname(src.path) == path):
......
Markdown is supported
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