use File.directory? as Dir.exists? is only 1.9.2+
This commit is contained in:
parent
f9a69e8744
commit
8293b10425
@ -171,9 +171,9 @@ def expanded
|
||||
def existent
|
||||
expanded.select { |f| File.exists?(f) }
|
||||
end
|
||||
|
||||
|
||||
def existent_directories
|
||||
expanded.select {|d| Dir.exists?(d) }
|
||||
expanded.select { |d| File.directory?(d) }
|
||||
end
|
||||
|
||||
alias to_a expanded
|
||||
|
Loading…
Reference in New Issue
Block a user