lib/file_finder.rb in xolti-0.0.0 vs lib/file_finder.rb in xolti-0.1.0
- old
+ new
@@ -21,10 +21,10 @@
return [] if !File.file?(xoltignorePath)
File.readlines(xoltignorePath).reject {|line| line == "" || line[0] == "#"}.map {|line| line.chomp}
end
module FileFinder
- def FileFinder.explore_folder(folder, ignoreRules=[])
+ def FileFinder.explore_folder(folder=Dir.pwd, ignoreRules=[])
fileAcc = []
ignoredPaths = [".", "..", ".git", ".xoltignore", "xolti.yml", "header.txt"]
ignoreRules += parse_xoltignore(folder)
Dir.glob("#{folder}/{*,.*}")