mirror of
https://github.com/bobbimanners/emailler.git
synced 2024-09-12 18:54:27 +00:00
git-svn-id: http://svn.code.sf.net/p/netboot65/code@211 93682198-c243-4bdb-bd91-e943c89aac3b
This commit is contained in:
parent
ca2a29836e
commit
b421f9f3f8
@ -31,13 +31,13 @@ class FileList
|
|||||||
normalised_subdir="$/#{subdir}".gsub("//","/").gsub("//","/")
|
normalised_subdir="$/#{subdir}".gsub("//","/").gsub("//","/")
|
||||||
s<<"#{normalised_subdir}\000"
|
s<<"#{normalised_subdir}\000"
|
||||||
end
|
end
|
||||||
current_dir[:directories].each do |directory_attributes|
|
current_dir[:directories].sort.each do |directory_attributes|
|
||||||
subdir=directory_attributes[0]
|
subdir=directory_attributes[0]
|
||||||
normalised_subdir="$/#{subdir}".gsub("//","/").gsub("//","/")
|
normalised_subdir="$/#{subdir}".gsub("//","/").gsub("//","/")
|
||||||
s<<"#{normalised_subdir}\000"
|
s<<"#{normalised_subdir}\000"
|
||||||
end
|
end
|
||||||
|
|
||||||
current_dir[:files].each do |filename|
|
current_dir[:files].sort.each do |filename|
|
||||||
s<<"#{filename}\000" if filename.downcase=~/#{target_extension}$/
|
s<<"#{filename}\000" if filename.downcase=~/#{target_extension}$/
|
||||||
end
|
end
|
||||||
s<<0.chr if s.length==0 #make sure there is at least one 'empty' string
|
s<<0.chr if s.length==0 #make sure there is at least one 'empty' string
|
||||||
|
Loading…
Reference in New Issue
Block a user