From 98f65e34698a81fdaf228d735110fabccb894d8c Mon Sep 17 00:00:00 2001 From: Espen Antonsen Date: Sat, 1 Aug 2009 20:23:42 +0200 Subject: [PATCH] file order --- lib/scan.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/scan.rb b/lib/scan.rb index 64e5397..e367e5d 100644 --- a/lib/scan.rb +++ b/lib/scan.rb @@ -7,7 +7,7 @@ module ScanFiles def self.FullScan prevalbum = "" - dirs = Find.find( APP_CONFIG[:photos_path] ) + dirs = Find.find( APP_CONFIG[:photos_path] ).collect dirs.sort.each { |path| if File.file?(path) && [".jpeg", ".jpg", ".gif", ".png"].include?( File.extname(path) ) relpath = File.dirname( path ).sub(APP_CONFIG[:photos_path], '')