# File lib/fakefs/file.rb, line 230 def initialize(file, __lstat = false) if !File.exists?(file) raise(Errno::ENOENT, "No such file or directory - #{file}") end @file = file @fake_file = FileSystem.find(@file) @__lstat = __lstat @ctime = @fake_file.ctime @mtime = @fake_file.mtime end
# File lib/fakefs/file.rb, line 246 def directory? File.directory?(@file) end
# File lib/fakefs/file.rb, line 250 def nlink @fake_file.links.size end
Generated with the Darkfish Rdoc Generator 2.