lib/slowfat/filesystem.rb
def file(path)
      path_components = path.split('/')
      dir_components = path_components[0..-2]
      filename = path_components[-1]
      dentry = dir(dir_components.join('/')).file_entry(filename)
      FatFile.new filesystem: self, dentry: dentry
    end
##
# Access a file within this filesystem
# @param path [String] the path to retrieve a file object for
# @return [FatFile] the file object matching the requested path
Access a file within this filesystem
Access a file within this filesystem
def file(path)
      path_components = path.split('/')
      dir_components = path_components[0..-2]
      filename = path_components[-1]
      dentry = dir(dir_components.join('/')).file_entry(filename)
      FatFile.new filesystem: self, dentry: dentry
    end
def file ( path ) path_components = path . split ( '/' ) dir_components = path_components [ 0 .. - 2 ] filename = path_components [ - 1 ] dentry = dir ( dir_components . join ( '/' ) ) . file_entry ( filename ) FatFile . new filesystem : self , dentry : dentry end
Access a file within this filesystem
Access a file within this filesystem
the file object matching the requested path
the file object matching the requested path
FatFile
path
the path to retrieve a file object for
the path to retrieve a file object for