Этот коммит содержится в:
tilde.town 2015-02-10 19:00:18 +00:00
родитель 8490275d3c
Коммит eb6bc8fbd1

Просмотреть файл

@ -28,10 +28,17 @@
(defn bounded-find [path] (find path "-maxdepth" "3")) (defn bounded-find [path] (find path "-maxdepth" "3"))
(defn guarded-mtime [filename]
(let [[path (.rstrip filename)]]
(try
(getmtime path)
(catch [e Exception]
0))))
(defn modify-time [username] (defn modify-time [username]
(->> (.format "/home/{}/public_html" username) (->> (.format "/home/{}/public_html" username)
bounded-find bounded-find
(map (fn [filename] (getmtime (.rstrip filename)))) (map guarded-mtime)
list list
max)) max))