Source: show | on GitHub
# File lib/fakefs/file.rb, line 184 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 196 def directory? File.directory?(@file) end
# File lib/fakefs/file.rb, line 200 def nlink FileSystem.find(@file).links.size end
# File lib/fakefs/file.rb, line 192 def symlink? File.symlink?(@file) end