📁 File Manager Pro
v10.0.3 | PHP: 8.1.34
Server: Apache
2026-06-21 22:09:30
📂
/ (Root)
/
opt
/
alt
/
ruby30
/
share
/
ri
/
system
/
File
📍 /opt/alt/ruby30/share/ri/system/File
🔄 Refresh
✏️
Editing: cdesc-File.ri
Read Only
U:RDoc::NormalClass[iI" File:ET@I"IO;To:RDoc::Markup::Document:@parts[o;;[o:RDoc::Markup::Paragraph;[ I"CA File is an abstraction of any file object accessible by the ;TI"Eprogram and is closely associated with class IO. File includes ;TI"Fthe methods of module FileTest as class methods, allowing you to ;TI"9write (for example) <code>File.exist?("foo")</code>.;To:RDoc::Markup::BlankLine o; ;[I")In the description of File methods, ;TI"6<em>permission bits</em> are a platform-specific ;TI"Dset of bits that indicate permissions of a file. On Unix-based ;TI"Gsystems, permissions are viewed as a set of three octets, for the ;TI"Downer, the group, and the rest of the world. For each of these ;TI"Eentities, permissions may be set to read, write, or execute the ;TI" file:;T@o; ;[I"DThe permission bits <code>0644</code> (in octal) would thus be ;TI"Finterpreted as read/write for owner, and read-only for group and ;TI"Gother. Higher-order bits may also be used to indicate the type of ;TI"Hfile (plain, directory, pipe, socket, and so on) and various other ;TI"Cspecial features. If the permissions are for a directory, the ;TI"Gmeaning of the execute bit changes; when set the directory can be ;TI"searched.;T@o; ;[I"FOn non-Posix operating systems, there may be only the ability to ;TI"Fmake a file read-only or read-write. In this case, the remaining ;TI"Ipermission bits will be synthesized to resemble typical values. For ;TI"=instance, on Windows NT the default permission bits are ;TI"H<code>0644</code>, which means read/write for owner, read-only for ;TI"Fall others. The only change that can be made is to make the file ;TI"7read-only, which is reported as <code>0444</code>.;T@o; ;[I"OVarious constants for the methods in File can be found in File::Constants.;T: @fileI"file.c;T:0@omit_headings_from_table_of_contents_below0;0;0[ [ U:RDoc::Constant[i I"Separator;TI"File::Separator;T:public0o;;[o; ;[I"&separates directory parts in path;T@;@2;0@2@cRDoc::NormalClass0U; [i I"SEPARATOR;TI"File::SEPARATOR;T;0o;;[o; ;[I"&separates directory parts in path;T@;@2;0@2@@>0U; [i I"ALT_SEPARATOR;TI"File::ALT_SEPARATOR;T;0o;;[o; ;[I",platform specific alternative separator;T@;@2;0@2@@>0U; [i I"PATH_SEPARATOR;TI"File::PATH_SEPARATOR;T;0o;;[o; ;[I"path list separator;T@;@2;0@2@@>0[ [[I" class;T[[;[ [:protected[ [:private[D[I"absolute_path;TI"file.c;T[I"absolute_path?;T@g[I" atime;T@g[I" basename;T@g[I"birthtime;T@g[I"blockdev?;T@g[I" chardev?;T@g[I" chmod;T@g[I" chown;T@g[I" ctime;T@g[I"delete;T@g[I"directory?;T@g[I"dirname;T@g[I"empty?;T@g[I"executable?;T@g[I"executable_real?;T@g[I"exist?;T@g[I"expand_path;T@g[I"extname;T@g[I" file?;T@g[I"fnmatch;TI" dir.c;T[I" fnmatch?;T@�[I" ftype;T@g[I"grpowned?;T@g[I"identical?;T@g[I" join;T@g[I"lchmod;T@g[I"lchown;T@g[I" link;T@g[I" lstat;T@g[I"lutime;T@g[I"mkfifo;T@g[I" mtime;T@g[I"new;TI" io.c;T[I" open;T@�[I"owned?;T@g[I" path;T@g[I" pipe?;T@g[I"readable?;T@g[I"readable_real?;T@g[I" readlink;T@g[I"realdirpath;T@g[I" realpath;T@g[I"rename;T@g[I"setgid?;T@g[I"setuid?;T@g[I" size;T@g[I" size?;T@g[I"socket?;T@g[I" split;T@g[I" stat;T@g[I"sticky?;T@g[I"symlink;T@g[I" symlink?;T@g[I" truncate;T@g[I" umask;T@g[I"unlink;T@g[I" utime;T@g[I"world_readable?;T@g[I"world_writable?;T@g[I"writable?;T@g[I"writable_real?;T@g[I" zero?;T@g[I" instance;T[[;[ [;[ [;[[I" atime;T@g[I"birthtime;T@g[I" chmod;T@g[I" chown;T@g[I" ctime;T@g[I" flock;T@g[I" lstat;T@g[I" mtime;T@g[I" path;T@g[I" size;T@g[I"to_path;T@g[I" truncate;T@g[ [U:RDoc::Context::Section[i 0o;;[ ;0;0["I" dir.c;TI"&ext/openssl/lib/openssl/config.rb;TI"!ext/pathname/lib/pathname.rb;TI"file.c;TI" io.c;TI"lib/bundler.rb;TI"lib/cgi/session.rb;TI"lib/cgi/session/pstore.rb;TI"lib/fileutils.rb;TI"lib/irb.rb;TI"lib/irb/ext/loader.rb;TI"lib/irb/ext/tracer.rb;TI"lib/irb/init.rb;TI"lib/logger.rb;TI"lib/mkmf.rb;TI"lib/open-uri.rb;TI"lib/optparse.rb;TI"lib/pp.rb;TI"lib/pstore.rb;TI"lib/rubygems.rb;TI"(lib/rubygems/basic_specification.rb;TI"1lib/rubygems/commands/environment_command.rb;TI"+lib/rubygems/commands/setup_command.rb;TI" lib/rubygems/config_file.rb;TI"lib/rubygems/defaults.rb;TI"lib/rubygems/installer.rb;TI"lib/rubygems/package.rb;TI"!lib/rubygems/path_support.rb;TI"lib/tempfile.rb;TI"lib/pp.rb;TcRDoc::TopLevel
💾 Save Changes
❌ Cancel