lib/deadpull/commands/push.rb in deadpull-0.1.0 vs lib/deadpull/commands/push.rb in deadpull-0.1.1
- old
+ new
@@ -23,10 +23,10 @@
def paths
@paths ||= if File.file?(path)
[path]
else
- Dir[path.join('**', '*')]
+ Dir[path.join('**', '*')].select { |item| File.file?(item) }
end
end
def local_root
@local_root ||= File.file?(path) ? File.dirname(path) : path