Linux heracles.o2switch.net 4.18.0-553.62.1.lve.el8.x86_64 #1 SMP Mon Jul 21 17:50:35 UTC 2025 x86_64
/
opt
/
alt
/
ruby21
/
share
/
ri
/
2.1.0
/
system
/
FileUtils
/
//opt/alt/ruby21/share/ri/2.1.0/system/FileUtils/cdesc-FileUtils.ri
U:RDoc::NormalModule[iI"FileUtils:EF@0o:RDoc::Markup::Document:@parts[o;;[$S:RDoc::Markup::Heading: leveli: textI"fileutils.rb;To:RDoc::Markup::BlankLine o:RDoc::Markup::Paragraph;[I"(Copyright (c) 2000-2007 Minero Aoki;T@o; ;[I"$This program is free software. ;TI"IYou can distribute/modify this program under the same terms of ruby.;T@S; ; i;I"module FileUtils;T@o; ;[I"SNamespace for several file utility methods for copying, moving, removing, etc.;T@S; ; i;I"Module Functions;T@o:RDoc::Markup::Verbatim;["I"cd(dir, options) ;TI"$cd(dir, options) {|dir| .... } ;TI"pwd() ;TI"mkdir(dir, options) ;TI"mkdir(list, options) ;TI"mkdir_p(dir, options) ;TI"mkdir_p(list, options) ;TI"rmdir(dir, options) ;TI"rmdir(list, options) ;TI"ln(old, new, options) ;TI" ln(list, destdir, options) ;TI"ln_s(old, new, options) ;TI""ln_s(list, destdir, options) ;TI"ln_sf(src, dest, options) ;TI"cp(src, dest, options) ;TI"cp(list, dir, options) ;TI"cp_r(src, dest, options) ;TI"cp_r(list, dir, options) ;TI"mv(src, dest, options) ;TI"mv(list, dir, options) ;TI"rm(list, options) ;TI"rm_r(list, options) ;TI"rm_rf(list, options) ;TI"1install(src, dest, mode = <src's>, options) ;TI" chmod(mode, list, options) ;TI""chmod_R(mode, list, options) ;TI"'chown(user, group, list, options) ;TI")chown_R(user, group, list, options) ;TI"touch(list, options) ;T:@format0o; ;[ I"NThe <tt>options</tt> parameter is a hash of options, taken from the list ;TI"Q<tt>:force</tt>, <tt>:noop</tt>, <tt>:preserve</tt>, and <tt>:verbose</tt>. ;TI"P<tt>:noop</tt> means that no changes are made. The other two are obvious. ;TI"7Each method documents the options that it honours.;T@o; ;[I"PAll methods that have the concept of a "source" file or directory can take ;TI"Jeither one file or a list of files in that argument. See the method ;TI" documentation for examples.;T@o; ;[I"HThere are some `low level' methods, which do not accept any option:;T@o;;[I"Bcopy_entry(src, dest, preserve = false, dereference = false) ;TI"@copy_file(src, dest, preserve = false, dereference = true) ;TI"(copy_stream(srcstream, deststream) ;TI"'remove_entry(path, force = false) ;TI".remove_entry_secure(path, force = false) ;TI"&remove_file(path, force = false) ;TI""compare_file(path_a, path_b) ;TI"(compare_stream(stream_a, stream_b) ;TI"uptodate?(file, cmp_list) ;T;0S; ; i;I"module FileUtils::Verbose;T@o; ;[I"NThis module has all methods of FileUtils module, but it outputs messages ;TI"Sbefore acting. This equates to passing the <tt>:verbose</tt> flag to methods ;TI"in FileUtils.;T@S; ; i;I"module FileUtils::NoWrite;T@o; ;[I"HThis module has all methods of FileUtils module, but never changes ;TI"Tfiles/directories. This equates to passing the <tt>:noop</tt> flag to methods ;TI"in FileUtils.;T@S; ; i;I"module FileUtils::DryRun;T@o; ;[I"HThis module has all methods of FileUtils module, but never changes ;TI"Hfiles/directories. This equates to passing the <tt>:noop</tt> and ;TI"5<tt>:verbose</tt> flags to methods in FileUtils.;T: @fileI"lib/fileutils.rb;T:0@omit_headings_from_table_of_contents_below0o;;[ ;I"lib/rake/file_utils.rb;T;0o;;[ ;I"lib/un.rb;T;0;0;0[ [ U:RDoc::Constant[i I"LOW_METHODS;FI"FileUtils::LOW_METHODS;T00o;;[ ;@j;0@j@cRDoc::NormalModule0U;[i I"METHODS;FI"FileUtils::METHODS;T00o;;[ ;@j;0@j@@y0U;[i I" RUBY;FI"FileUtils::RUBY;T00o;;[o; ;[I"/Path to the currently running Ruby program;T;@m;0@m@@y0U;[i I"LN_SUPPORTED;FI"FileUtils::LN_SUPPORTED;T00o;;[ ;@m;0@m@@y0[[I"StreamUtils_;To;;[ ;@j;0I"lib/fileutils.rb;T[[I" class;T[[:public[1[I"cd;F@�[I" chdir;F@�[I" chmod;F@�[I"chmod_R;F@�[I" chown;F@�[I"chown_R;F@�[I"cmp;F@�[I"compare_file;F@�[I"compare_stream;F@�[I" copy;F@�[I"copy_entry;F@�[I"copy_file;F@�[I"copy_stream;F@�[I"cp;F@�[I" cp_r;F@�[I" getwd;F@�[I"identical?;F@�[I"install;F@�[I" link;F@�[I"ln;F@�[I" ln_s;F@�[I" ln_sf;F@�[I" makedirs;F@�[I" mkdir;F@�[I"mkdir_p;F@�[I"mkpath;F@�[I" move;F@�[I"mv;F@�[I"pwd;F@�[I"remove;F@�[I"remove_dir;F@�[I"remove_entry;F@�[I"remove_entry_secure;F@�[I"remove_file;F@�[I"rm;F@�[I" rm_f;F@�[I" rm_r;F@�[I" rm_rf;F@�[I" rmdir;F@�[I"rmtree;F@�[I"safe_unlink;F@�[I"symlink;F@�[I" touch;F@�[I"uptodate?;F@�[:protected[ [:private[ [I"collect_method;F@�[I" commands;F@�[I"have_option?;F@�[I"options;F@�[I"options_of;F@�[I" instance;T[[;[[I"apply_mask;F@�[I"remove_tailing_slash;F@�[I" ruby;FI"lib/rake/file_utils.rb;T[I"safe_ln;F@[I"sh;F@[I"split_all;F@[;[ [;[1[@�@�[@�@�[@�@�[@�@�[@�@�[@�@�[@�@�[@�@�[@�@�[@�@�[@�@�[@�@�[@�@�[@�@�[@�@�[@�@�[@�@�[@�@�[@�@�[@�@�[@�@�[@�@�[@�@�[@�@�[@�@�[@�@�[@�@�[@�@�[@�@�[@�@�[@�@�[@�@�[@�@�[@�@�[@�@�[@�@�[@�@�[@�@�[@�@�[@�@�[@�@�[@�@�[@�@�[@�@�[[I"StreamUtils_;To;;[ ;@j;0@�[U:RDoc::Context::Section[i 0o;;[ ;0;0[@j@m@p@pcRDoc::TopLevel