aboutsummaryrefslogtreecommitdiffstats
path: root/view_functions.py
diff options
context:
space:
mode:
Diffstat (limited to 'view_functions.py')
-rw-r--r--view_functions.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/view_functions.py b/view_functions.py
index f86952d..1131778 100644
--- a/view_functions.py
+++ b/view_functions.py
@@ -3,6 +3,7 @@ view_functions.py - defines functions called by views to display the correct dat
about files and paths.
"""
import os
+from time import strftime, strptime, ctime
from siteconfig import siteconfig
@@ -18,6 +19,9 @@ def default_context():
}
+def file_last_modified(path):
+ return ctime(os.stat(path).st_ctime)
+
def index_dir(path):
"""
index_dir - Given a directory at `path`, list it's contents,