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