Source: show | on GitHub
# File lib/fakefs/file.rb, line 165 def initialize(file) if !File.exists?(file) raise(Errno::ENOENT, "No such file or directory - #{file}") end @file = file end
# File lib/fakefs/file.rb, line 177 def directory? File.directory?(@file) end
# File lib/fakefs/file.rb, line 181 def nlink FileSystem.find(@file).links.size end
# File lib/fakefs/file.rb, line 173 def symlink? File.symlink?(@file) end