lib/overapp/util/dir.rb in overapp-0.4.1 vs lib/overapp/util/dir.rb in overapp-0.4.2
- old
+ new
@@ -1,12 +1,12 @@
module Overapp
class << self
def dir_files(dir)
res = Dir["#{dir}/**/*"] + Dir["#{dir}/**/.*"]
res = res - [".","..",".git"]
- rej = res.select { |x| FileTest.file?(x) && File.binary?(x) && !(x =~ /\.txt/) }
- raise rej.inspect unless rej.empty?
- res
+ res.reject { |x| FileTest.file?(x) && File.binary?(x) && !(x =~ /\.txt/) }
+ #raise rej.inspect unless rej.empty?
+ #res - rej
end
def with_local_path(overapp_path,&b)
if Git.repo?(overapp_path)
TmpDir.with_repo_path(overapp_path) do |dir|
\ No newline at end of file