file order
This commit is contained in:
parent
2ddea72d7f
commit
b6d2102f68
|
@ -7,7 +7,7 @@ module ScanFiles
|
|||
|
||||
def self.FullScan
|
||||
prevalbum = ""
|
||||
Find.find( APP_CONFIG[:photos_path] ) { |path|
|
||||
Find.find( APP_CONFIG[:photos_path] ).sort.each { |path|
|
||||
if File.file?(path) && [".jpeg", ".jpg", ".gif", ".png"].include?( File.extname(path) )
|
||||
relpath = File.dirname( path ).sub(APP_CONFIG[:photos_path], '')
|
||||
relfile = path.sub(APP_CONFIG[:photos_path], '')
|
||||
|
|
Loading…
Reference in a new issue