U:RDoc::NormalClass[iI" File:ET@I"IO;To:RDoc::Markup::Document:@parts[o;;[o:RDoc::Markup::Paragraph;[
I"IA File
is an abstraction of any file object accessible ;TI"Jby the program and is closely associated with class IO
. ;TI"6File
includes the methods of module ;TI"HFileTest
as class methods, allowing you to write (for ;TI".example) File.exist?("foo")
.;To:RDoc::Markup::BlankLine o; ;[I")In the description of File methods, ;TI"6permission bits 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 0644
(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"H0644
, 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 0444
.;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;T00o;;[o; ;[I"&separates directory parts in path;T@;@3;0@3@cRDoc::NormalClass0U;
[i I"SEPARATOR;TI"File::SEPARATOR;T00o;;[ ;@3;0@3@@?0U;
[i I"ALT_SEPARATOR;TI"File::ALT_SEPARATOR;T00o;;[o; ;[I",platform specific alternative separator;T@;@3;0@3@@?0U;
[i I"PATH_SEPARATOR;TI"File::PATH_SEPARATOR;T00o;;[o; ;[I"path list separator;T@;@3;0@3@@?0[ [[I"
class;T[[:public[C[I"absolute_path;TI"file.c;T[I"
atime;T@a[I"
basename;T@a[I"birthtime;T@a[I"blockdev?;T@a[I"
chardev?;T@a[I"
chmod;T@a[I"
chown;T@a[I"
ctime;T@a[I"delete;T@a[I"directory?;T@a[I"dirname;T@a[I"empty?;T@a[I"executable?;T@a[I"executable_real?;T@a[I"exist?;T@a[I"exists?;T@a[I"expand_path;T@a[I"extname;T@a[I"
file?;T@a[I"fnmatch;TI"
dir.c;T[I"
fnmatch?;T@…[I"
ftype;T@a[I"grpowned?;T@a[I"identical?;T@a[I" join;T@a[I"lchmod;T@a[I"lchown;T@a[I" link;T@a[I"
lstat;T@a[I"mkfifo;T@a[I"
mtime;T@a[I"new;TI" io.c;T[I" open;T@ž[I"owned?;T@a[I" path;T@a[I"
pipe?;T@a[I"readable?;T@a[I"readable_real?;T@a[I"
readlink;T@a[I"realdirpath;T@a[I"
realpath;T@a[I"rename;T@a[I"setgid?;T@a[I"setuid?;T@a[I" size;T@a[I"
size?;T@a[I"socket?;T@a[I"
split;T@a[I" stat;T@a[I"sticky?;T@a[I"symlink;T@a[I"
symlink?;T@a[I"
truncate;T@a[I"
umask;T@a[I"unlink;T@a[I"
utime;T@a[I"world_readable?;T@a[I"world_writable?;T@a[I"writable?;T@a[I"writable_real?;T@a[I"
zero?;T@a[:protected[ [:private[ [I"
instance;T[[;[[I"
atime;T@a[I"birthtime;T@a[I"
chmod;T@a[I"
chown;T@a[I"
ctime;T@a[I"
flock;T@a[I"
lstat;T@a[I"
mtime;T@a[I" path;T@a[I" size;T@a[I"to_path;T@a[I"
truncate;T@a[;[ [;[ [ [U:RDoc::Context::Section[i 0o;;[ ;0;0["I"
dir.c;TI"!ext/pathname/lib/pathname.rb;T@3I" io.c;TI"lib/cgi/session.rb;TI"lib/cgi/session/pstore.rb;TI"lib/fileutils.rb;TI"lib/irb.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/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/defaults.rb;TI"lib/rubygems/installer.rb;TI"lib/rubygems/package.rb;TI"!lib/rubygems/path_support.rb;TI"lib/rubygems/test_case.rb;TI"lib/tempfile.rb;TI"%lib/webrick/httpauth/htdigest.rb;TI"$lib/webrick/httpauth/htgroup.rb;TI"%lib/webrick/httpauth/htpasswd.rb;TI"*lib/webrick/httpservlet/cgi_runner.rb;TI"+lib/webrick/httpservlet/filehandler.rb;T@cRDoc::TopLevel