copy-pasted the above and noticed: a) works nicely! b) needs a `using Dates` or `Dates.unix2datetime` to work on my 0.4 release. c) `t -> last(t)` could be just `last`
On Saturday, October 24, 2015 at 11:43:28 AM UTC+3, cormu...@mac.com wrote: > > Perhaps > > first(sort(map(f -> (realpath(f), unix2datetime(stat(f).mtime)), > readdir()), by = t -> last(t), rev=true)) > > would do if there's no better way. >