module VirtFS::CamcorderFS::CcDelegate::FileClassMethods
Public Instance Methods
file_atime(p)
click to toggle source
# File lib/virtfs/camcorderfs/cc_delegate/file_class_methods.rb, line 11 def file_atime(p) VfsRealFile.atime(p) end
file_blockdev?(p)
click to toggle source
# File lib/virtfs/camcorderfs/cc_delegate/file_class_methods.rb, line 15 def file_blockdev?(p) VfsRealFile.blockdev?(p) end
file_chardev?(p)
click to toggle source
# File lib/virtfs/camcorderfs/cc_delegate/file_class_methods.rb, line 19 def file_chardev?(p) VfsRealFile.chardev?(p) end
file_chmod(permission, p)
click to toggle source
# File lib/virtfs/camcorderfs/cc_delegate/file_class_methods.rb, line 23 def file_chmod(permission, p) VfsRealFile.chmod(permission, p) end
file_chown(owner, group, p)
click to toggle source
# File lib/virtfs/camcorderfs/cc_delegate/file_class_methods.rb, line 27 def file_chown(owner, group, p) VfsRealFile.chown(owner, group, p) end
file_ctime(p)
click to toggle source
# File lib/virtfs/camcorderfs/cc_delegate/file_class_methods.rb, line 31 def file_ctime(p) VfsRealFile.ctime(p) end
file_delete(p)
click to toggle source
# File lib/virtfs/camcorderfs/cc_delegate/file_class_methods.rb, line 35 def file_delete(p) VfsRealFile.delete(p) end
file_directory?(p)
click to toggle source
# File lib/virtfs/camcorderfs/cc_delegate/file_class_methods.rb, line 39 def file_directory?(p) VfsRealFile.directory?(p) end
file_executable?(p)
click to toggle source
# File lib/virtfs/camcorderfs/cc_delegate/file_class_methods.rb, line 43 def file_executable?(p) VfsRealFile.executable?(p) end
file_executable_real?(p)
click to toggle source
# File lib/virtfs/camcorderfs/cc_delegate/file_class_methods.rb, line 47 def file_executable_real?(p) VfsRealFile.executable_real?(p) end
file_exist?(p)
click to toggle source
# File lib/virtfs/camcorderfs/cc_delegate/file_class_methods.rb, line 51 def file_exist?(p) VfsRealFile.exist?(p) end
file_file?(p)
click to toggle source
# File lib/virtfs/camcorderfs/cc_delegate/file_class_methods.rb, line 55 def file_file?(p) VfsRealFile.file?(p) end
file_ftype(p)
click to toggle source
# File lib/virtfs/camcorderfs/cc_delegate/file_class_methods.rb, line 59 def file_ftype(p) VfsRealFile.ftype(p) end
file_grpowned?(p)
click to toggle source
# File lib/virtfs/camcorderfs/cc_delegate/file_class_methods.rb, line 63 def file_grpowned?(p) VfsRealFile.grpowned?(p) end
file_identical?(p1, p2)
click to toggle source
# File lib/virtfs/camcorderfs/cc_delegate/file_class_methods.rb, line 67 def file_identical?(p1, p2) VfsRealFile.identical?(p1, p2) end
file_lchmod(permission, p)
click to toggle source
# File lib/virtfs/camcorderfs/cc_delegate/file_class_methods.rb, line 71 def file_lchmod(permission, p) VfsRealFile.lchmod(permission, p) end
file_lchown(owner, group, p)
click to toggle source
# File lib/virtfs/camcorderfs/cc_delegate/file_class_methods.rb, line 75 def file_lchown(owner, group, p) VfsRealFile.lchown(owner, group, p) end
file_link(p1, p2)
click to toggle source
# File lib/virtfs/camcorderfs/cc_delegate/file_class_methods.rb, line 79 def file_link(p1, p2) VfsRealFile.link(p1, p2) end
file_lstat(p)
click to toggle source
# File lib/virtfs/camcorderfs/cc_delegate/file_class_methods.rb, line 83 def file_lstat(p) VirtFS::Stat.new(VfsRealFile.lstat(p)) end
file_mtime(p)
click to toggle source
# File lib/virtfs/camcorderfs/cc_delegate/file_class_methods.rb, line 87 def file_mtime(p) VfsRealFile.mtime(p) end
file_new(fs_rel_path, parsed_args, _open_path, cwd)
click to toggle source
# File lib/virtfs/camcorderfs/cc_delegate/file_class_methods.rb, line 171 def file_new(fs_rel_path, parsed_args, _open_path, cwd) owd = VfsRealDir.getwd begin VfsRealDir.chdir(cwd) fobj = RealFile.new(fs_rel_path, parsed_args.mode_bits & ~VfsRealFile::APPEND, :binmode => true) return marshallable_file(fobj) ensure VfsRealDir.chdir(owd) end end
file_owned?(p)
click to toggle source
# File lib/virtfs/camcorderfs/cc_delegate/file_class_methods.rb, line 91 def file_owned?(p) VfsRealFile.owned?(p) end
file_pipe?(p)
click to toggle source
# File lib/virtfs/camcorderfs/cc_delegate/file_class_methods.rb, line 95 def file_pipe?(p) VfsRealFile.pipe?(p) end
file_readable?(p)
click to toggle source
# File lib/virtfs/camcorderfs/cc_delegate/file_class_methods.rb, line 99 def file_readable?(p) VfsRealFile.readable?(p) end
file_readable_real?(p)
click to toggle source
# File lib/virtfs/camcorderfs/cc_delegate/file_class_methods.rb, line 103 def file_readable_real?(p) VfsRealFile.readable_real?(p) end
file_readlink(p)
click to toggle source
# File lib/virtfs/camcorderfs/cc_delegate/file_class_methods.rb, line 107 def file_readlink(p) VfsRealFile.readlink(p) end
file_rename(p1, p2)
click to toggle source
# File lib/virtfs/camcorderfs/cc_delegate/file_class_methods.rb, line 111 def file_rename(p1, p2) VfsRealFile.rename(p1, p2) end
file_setgid?(p)
click to toggle source
# File lib/virtfs/camcorderfs/cc_delegate/file_class_methods.rb, line 115 def file_setgid?(p) VfsRealFile.setgid?(p) end
file_setuid?(p)
click to toggle source
# File lib/virtfs/camcorderfs/cc_delegate/file_class_methods.rb, line 119 def file_setuid?(p) VfsRealFile.setuid?(p) end
file_size(p)
click to toggle source
# File lib/virtfs/camcorderfs/cc_delegate/file_class_methods.rb, line 123 def file_size(p) VfsRealFile.size(p) end
file_socket?(p)
click to toggle source
# File lib/virtfs/camcorderfs/cc_delegate/file_class_methods.rb, line 127 def file_socket?(p) VfsRealFile.socket?(p) end
file_stat(p)
click to toggle source
# File lib/virtfs/camcorderfs/cc_delegate/file_class_methods.rb, line 131 def file_stat(p) VirtFS::Stat.new(VfsRealFile.stat(p)) end
file_sticky?(p)
click to toggle source
# File lib/virtfs/camcorderfs/cc_delegate/file_class_methods.rb, line 135 def file_sticky?(p) VfsRealFile.sticky?(p) end
file_symlink(oname, p)
click to toggle source
# File lib/virtfs/camcorderfs/cc_delegate/file_class_methods.rb, line 139 def file_symlink(oname, p) VfsRealFile.symlink(oname, p) end
file_symlink?(p)
click to toggle source
# File lib/virtfs/camcorderfs/cc_delegate/file_class_methods.rb, line 143 def file_symlink?(p) VfsRealFile.symlink?(p) end
file_truncate(p, len)
click to toggle source
# File lib/virtfs/camcorderfs/cc_delegate/file_class_methods.rb, line 147 def file_truncate(p, len) VfsRealFile.truncate(p, len) end
file_utime(atime, mtime, p)
click to toggle source
# File lib/virtfs/camcorderfs/cc_delegate/file_class_methods.rb, line 151 def file_utime(atime, mtime, p) VfsRealFile.utime(atime, mtime, p) end
file_world_readable?(p)
click to toggle source
# File lib/virtfs/camcorderfs/cc_delegate/file_class_methods.rb, line 155 def file_world_readable?(p) VfsRealFile.world_readable?(p) end
file_world_writable?(p)
click to toggle source
# File lib/virtfs/camcorderfs/cc_delegate/file_class_methods.rb, line 159 def file_world_writable?(p) VfsRealFile.world_writable?(p) end
file_writable?(p)
click to toggle source
# File lib/virtfs/camcorderfs/cc_delegate/file_class_methods.rb, line 163 def file_writable?(p) VfsRealFile.writable?(p) end
file_writable_real?(p)
click to toggle source
# File lib/virtfs/camcorderfs/cc_delegate/file_class_methods.rb, line 167 def file_writable_real?(p) VfsRealFile.writable_real?(p) end
marshallable_file(file)
click to toggle source
# File lib/virtfs/camcorderfs/cc_delegate/file_class_methods.rb, line 182 def marshallable_file(file) file.instance_variable_set(:@__cc_id, file.object_id) file end