file order

rails2
Espen Antonsen 2009-08-01 20:23:42 +02:00
parent dfe5a6f7ac
commit 98f65e3469
1 changed files with 1 additions and 1 deletions

View File

@ -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], '')