Methods
D
N
S
Class Public methods
new(file)
# 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
Instance Public methods
directory?()
# File lib/fakefs/file.rb, line 196
      def directory?
        File.directory?(@file)
      end
nlink()
# File lib/fakefs/file.rb, line 200
      def nlink
        FileSystem.find(@file).links.size
      end
symlink?()
# File lib/fakefs/file.rb, line 192
      def symlink?
        File.symlink?(@file)
      end