module VirtFS::NativeFS::Thin::DirClassMethods

Public Instance Methods

dir_delete(p) click to toggle source
# File lib/virtfs/nativefs/thin/dir_class_methods.rb, line 7
def dir_delete(p)
  VfsRealDir.delete(apply_root(p))
end
dir_entries(p) click to toggle source
# File lib/virtfs/nativefs/thin/dir_class_methods.rb, line 11
def dir_entries(p)
  VfsRealDir.entries(apply_root(p))
end
dir_exist?(p) click to toggle source
# File lib/virtfs/nativefs/thin/dir_class_methods.rb, line 15
def dir_exist?(p)
  VfsRealDir.exist?(apply_root(p))
end
dir_foreach(p, &block) click to toggle source
# File lib/virtfs/nativefs/thin/dir_class_methods.rb, line 19
def dir_foreach(p, &block)
  VfsRealDir.foreach(apply_root(p), &block)
end
dir_mkdir(p, permissions) click to toggle source
# File lib/virtfs/nativefs/thin/dir_class_methods.rb, line 23
def dir_mkdir(p, permissions)
  VfsRealDir.mkdir(apply_root(p), permissions)
end
dir_new(fs_rel_path, hash_args, _open_path, _cwd) click to toggle source
# File lib/virtfs/nativefs/thin/dir_class_methods.rb, line 27
def dir_new(fs_rel_path, hash_args, _open_path, _cwd)
  Dir.new(self, lookup_dir(apply_root(fs_rel_path), hash_args), hash_args)
end

Private Instance Methods

lookup_dir(fs_rel_path, hash_args) click to toggle source
# File lib/virtfs/nativefs/thin/dir_class_methods.rb, line 33
def lookup_dir(fs_rel_path, hash_args)
  #
  # Get filesystem-specific handle for directory instance.
  #
  VfsRealDir.new(fs_rel_path, hash_args)
end