Module: VirtFS::NativeFS::Thin::DirClassMethods

Included in:
VirtFS::NativeFS::Thin
Defined in:
lib/virtfs/nativefs/thin/dir_class_methods.rb

Instance Method Summary collapse

Instance Method Details

#dir_delete(p) ⇒ Object



7
8
9
# File 'lib/virtfs/nativefs/thin/dir_class_methods.rb', line 7

def dir_delete(p)
  VfsRealDir.delete(apply_root(p))
end

#dir_entries(p) ⇒ Object



11
12
13
# File 'lib/virtfs/nativefs/thin/dir_class_methods.rb', line 11

def dir_entries(p)
  VfsRealDir.entries(apply_root(p))
end

#dir_exist?(p) ⇒ Boolean

Returns:

  • (Boolean)


15
16
17
# 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) ⇒ Object



19
20
21
# 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) ⇒ Object



23
24
25
# 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) ⇒ Object



27
28
29
# 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