lib/change.rb in change-0.1.3 vs lib/change.rb in change-0.1.4
- old
+ new
@@ -20,9 +20,10 @@
def d(reload=false)
if @d && !reload
@d
else
paths = Dir.chdir(@root) { Dir["**/*"] }
+ paths = Dir.chdir(@root) { paths.select { |p| File.file?(p) } }
add = paths - states.keys
rem = states.keys - paths
hashes = file_hashes(paths)
mod = paths.inject([]) do |array, path|
\ No newline at end of file