Skip to content
Permalink
Browse files

Merge branch 'pr/796'

  • Loading branch information
alex committed Jul 12, 2013
2 parents 4f8c259 + 95c1713 commit 58ce0da23e7d8643d8bde0bf4773385b3125c189
Showing with 12 additions and 9 deletions.
  1. +12 −0 lib-topaz/file.rb
  2. +0 −9 spec/tags/core/file/zero_tags.txt
@@ -19,6 +19,18 @@ def self.size(filename)
return File.stat(filename).size
end

def self.zero?(filename)
if filename.respond_to?(:to_path)
filename = filename.to_path
end

begin
File.size(filename) == 0
rescue Errno::ENOENT
false
end
end

def size
return self.stat.size
end

This file was deleted.

0 comments on commit 58ce0da

Please sign in to comment.
You can’t perform that action at this time.