module VirtFS::CamcorderFS::CcDelegate::DirClassMethods

Public Instance Methods

dir_chdir(_p) click to toggle source
# File lib/virtfs/camcorderfs/cc_delegate/dir_class_methods.rb, line 11
def dir_chdir(_p)
  0 # needed for side effects.
end
dir_delete(p) click to toggle source
# File lib/virtfs/camcorderfs/cc_delegate/dir_class_methods.rb, line 15
def dir_delete(p)
  VfsRealDir.delete(p)
end
dir_entries(p) click to toggle source
# File lib/virtfs/camcorderfs/cc_delegate/dir_class_methods.rb, line 19
def dir_entries(p)
  VfsRealDir.entries(p)
end
dir_exist?(p) click to toggle source
# File lib/virtfs/camcorderfs/cc_delegate/dir_class_methods.rb, line 23
def dir_exist?(p)
  VfsRealDir.exist?(p)
end
dir_foreach(p) click to toggle source
# File lib/virtfs/camcorderfs/cc_delegate/dir_class_methods.rb, line 27
def dir_foreach(p)
  VfsRealDir.foreach(p).to_a
end
dir_mkdir(p, permissions) click to toggle source
# File lib/virtfs/camcorderfs/cc_delegate/dir_class_methods.rb, line 31
def dir_mkdir(p, permissions)
  VfsRealDir.mkdir(p, permissions)
end
dir_new(fs_rel_path, hash_args, _open_path, cwd) click to toggle source
# File lib/virtfs/camcorderfs/cc_delegate/dir_class_methods.rb, line 35
def dir_new(fs_rel_path, hash_args, _open_path, cwd)
  owd = VfsRealDir.getwd
  begin
    VfsRealDir.chdir(cwd)
    return marshallable_dir(RealDir.new(fs_rel_path, hash_args))
  ensure
    VfsRealDir.chdir(owd)
  end
end
marshallable_dir(dir) click to toggle source
# File lib/virtfs/camcorderfs/cc_delegate/dir_class_methods.rb, line 45
def marshallable_dir(dir)
  dir.instance_variable_set(:@__cc_id, dir.object_id)
  dir
end