module VirtFS::NativeFS::Thin::FileClassMethods

Public Instance Methods

file_atime(p) click to toggle source
# File lib/virtfs/nativefs/thin/file_class_methods.rb, line 7
def file_atime(p)
  VfsRealFile.atime(p)
end
file_blockdev?(p) click to toggle source
# File lib/virtfs/nativefs/thin/file_class_methods.rb, line 11
def file_blockdev?(p)
  VfsRealFile.blockdev?(apply_root(p))
end
file_chardev?(p) click to toggle source
# File lib/virtfs/nativefs/thin/file_class_methods.rb, line 15
def file_chardev?(p)
  VfsRealFile.chardev?(apply_root(p))
end
file_chmod(permission, p) click to toggle source
# File lib/virtfs/nativefs/thin/file_class_methods.rb, line 19
def file_chmod(permission, p)
  VfsRealFile.chmod(permission, apply_root(p))
end
file_chown(owner, group, p) click to toggle source
# File lib/virtfs/nativefs/thin/file_class_methods.rb, line 23
def file_chown(owner, group, p)
  VfsRealFile.chown(owner, group, apply_root(p))
end
file_ctime(p) click to toggle source
# File lib/virtfs/nativefs/thin/file_class_methods.rb, line 27
def file_ctime(p)
  VfsRealFile.ctime(apply_root(p))
end
file_delete(p) click to toggle source
# File lib/virtfs/nativefs/thin/file_class_methods.rb, line 31
def file_delete(p)
  VfsRealFile.delete(apply_root(p))
end
file_directory?(p) click to toggle source
# File lib/virtfs/nativefs/thin/file_class_methods.rb, line 35
def file_directory?(p)
  VfsRealFile.directory?(apply_root(p))
end
file_executable?(p) click to toggle source
# File lib/virtfs/nativefs/thin/file_class_methods.rb, line 39
def file_executable?(p)
  VfsRealFile.executable?(apply_root(p))
end
file_executable_real?(p) click to toggle source
# File lib/virtfs/nativefs/thin/file_class_methods.rb, line 43
def file_executable_real?(p)
  VfsRealFile.executable_real?(apply_root(p))
end
file_exist?(p) click to toggle source
# File lib/virtfs/nativefs/thin/file_class_methods.rb, line 47
def file_exist?(p)
  VfsRealFile.exist?(apply_root(p))
end
file_file?(p) click to toggle source
# File lib/virtfs/nativefs/thin/file_class_methods.rb, line 51
def file_file?(p)
  VfsRealFile.file?(apply_root(p))
end
file_ftype(p) click to toggle source
# File lib/virtfs/nativefs/thin/file_class_methods.rb, line 55
def file_ftype(p)
  VfsRealFile.ftype(apply_root(p))
end
file_grpowned?(p) click to toggle source
# File lib/virtfs/nativefs/thin/file_class_methods.rb, line 59
def file_grpowned?(p)
  VfsRealFile.grpowned?(apply_root(p))
end
file_identical?(p1, p2) click to toggle source
# File lib/virtfs/nativefs/thin/file_class_methods.rb, line 63
def file_identical?(p1, p2)
  VfsRealFile.identical?(apply_root(p1), apply_root(p2))
end
file_lchmod(permission, p) click to toggle source
# File lib/virtfs/nativefs/thin/file_class_methods.rb, line 67
def file_lchmod(permission, p)
  VfsRealFile.lchmod(permission, apply_root(p))
end
file_lchown(owner, group, p) click to toggle source
# File lib/virtfs/nativefs/thin/file_class_methods.rb, line 71
def file_lchown(owner, group, p)
  VfsRealFile.lchown(owner, group, apply_root(p))
end
file_lstat(p) click to toggle source
# File lib/virtfs/nativefs/thin/file_class_methods.rb, line 79
def file_lstat(p)
  VfsRealFile.lstat(apply_root(p))
end
file_mtime(p) click to toggle source
# File lib/virtfs/nativefs/thin/file_class_methods.rb, line 83
def file_mtime(p)
  VfsRealFile.mtime(apply_root(p))
end
file_new(f, parsed_args, _open_path, _cwd) click to toggle source
# File lib/virtfs/nativefs/thin/file_class_methods.rb, line 167
def file_new(f, parsed_args, _open_path, _cwd)
  File.new(self, lookup_file(apply_root(f), parsed_args), parsed_args)
end
file_owned?(p) click to toggle source
# File lib/virtfs/nativefs/thin/file_class_methods.rb, line 87
def file_owned?(p)
  VfsRealFile.owned?(apply_root(p))
end
file_pipe?(p) click to toggle source
# File lib/virtfs/nativefs/thin/file_class_methods.rb, line 91
def file_pipe?(p)
  VfsRealFile.pipe?(apply_root(p))
end
file_readable?(p) click to toggle source
# File lib/virtfs/nativefs/thin/file_class_methods.rb, line 95
def file_readable?(p)
  VfsRealFile.readable?(apply_root(p))
end
file_readable_real?(p) click to toggle source
# File lib/virtfs/nativefs/thin/file_class_methods.rb, line 99
def file_readable_real?(p)
  VfsRealFile.readable_real?(apply_root(p))
end
file_rename(p1, p2) click to toggle source
# File lib/virtfs/nativefs/thin/file_class_methods.rb, line 107
def file_rename(p1, p2)
  VfsRealFile.rename(apply_root(p1), apply_root(p2))
end
file_setgid?(p) click to toggle source
# File lib/virtfs/nativefs/thin/file_class_methods.rb, line 111
def file_setgid?(p)
  VfsRealFile.setgid?(apply_root(p))
end
file_setuid?(p) click to toggle source
# File lib/virtfs/nativefs/thin/file_class_methods.rb, line 115
def file_setuid?(p)
  VfsRealFile.setuid?(apply_root(p))
end
file_size(p) click to toggle source
# File lib/virtfs/nativefs/thin/file_class_methods.rb, line 119
def file_size(p)
  VfsRealFile.size(apply_root(p))
end
file_socket?(p) click to toggle source
# File lib/virtfs/nativefs/thin/file_class_methods.rb, line 123
def file_socket?(p)
  VfsRealFile.socket?(apply_root(p))
end
file_stat(p) click to toggle source
# File lib/virtfs/nativefs/thin/file_class_methods.rb, line 127
def file_stat(p)
  VfsRealFile.stat(apply_root(p))
end
file_sticky?(p) click to toggle source
# File lib/virtfs/nativefs/thin/file_class_methods.rb, line 131
def file_sticky?(p)
  VfsRealFile.sticky?(apply_root(p))
end
file_truncate(p, len) click to toggle source
# File lib/virtfs/nativefs/thin/file_class_methods.rb, line 143
def file_truncate(p, len)
  VfsRealFile.truncate(apply_root(p), len)
end
file_utime(atime, mtime, p) click to toggle source
# File lib/virtfs/nativefs/thin/file_class_methods.rb, line 147
def file_utime(atime, mtime, p)
  VfsRealFile.utime(atime, mtime, apply_root(p))
end
file_world_readable?(p) click to toggle source
# File lib/virtfs/nativefs/thin/file_class_methods.rb, line 151
def file_world_readable?(p)
  VfsRealFile.world_readable?(apply_root(p))
end
file_world_writable?(p) click to toggle source
# File lib/virtfs/nativefs/thin/file_class_methods.rb, line 155
def file_world_writable?(p)
  VfsRealFile.world_writable?(apply_root(p))
end
file_writable?(p) click to toggle source
# File lib/virtfs/nativefs/thin/file_class_methods.rb, line 159
def file_writable?(p)
  VfsRealFile.writable?(apply_root(p))
end
file_writable_real?(p) click to toggle source
# File lib/virtfs/nativefs/thin/file_class_methods.rb, line 163
def file_writable_real?(p)
  VfsRealFile.writable_real?(apply_root(p))
end

Private Instance Methods

lookup_file(f, parsed_args) click to toggle source
# File lib/virtfs/nativefs/thin/file_class_methods.rb, line 173
def lookup_file(f, parsed_args)
  #
  # Get filesystem-specific handle for file instance.
  #
  VfsRealFile.new(f, parsed_args.mode_bits & ~VfsRealFile::APPEND, :binmode => true)
end