bin/soywiki-ls-t in soywiki-0.5.6 vs bin/soywiki-ls-t in soywiki-0.5.7
- old
+ new
@@ -4,9 +4,10 @@
# this emulates ls -t in unix, but searches subdirs and returns a flat list of
# files
xs = Dir.glob('*/*').
select {|x| File.file?(x) && x.gsub('/', '.') =~ Soywiki::WIKI_WORD }.
+ select {|x| x !~ /~$/ }. # vim backup files
sort_by {|x| File.stat(x).mtime }.
reverse.map {|x| x.to_page_title }
puts xs.join("\n")