PATH:
opt
/
alt
/
ruby34
/
share
/
ri
/
system
/
FileUtils
U:RDoc::AnyMethod[iI"ln:ETI"FileUtils::ln;TT:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [I"CCreates {hard links}[https://en.wikipedia.org/wiki/Hard_link].;To:RDoc::Markup::BlankLine o; ; [I":Arguments +src+ (a single path or an array of paths) ;TI" and +dest+ (a single path) ;TI"Kshould be {interpretable as paths}[rdoc-ref:FileUtils@Path+Arguments].;T@o; ; [I"0When +src+ is the path to an existing file ;TI"4and +dest+ is the path to a non-existent file, ;TI"Ccreates a hard link at +dest+ pointing to +src+; returns zero:;T@o:RDoc::Markup::Verbatim; [ I"=Dir.children('tmp0/') # => ["t.txt"] ;TI"6Dir.children('tmp1/') # => [] ;TI"5FileUtils.ln('tmp0/t.txt', 'tmp1/t.lnk') # => 0 ;TI"=Dir.children('tmp1/') # => ["t.lnk"] ;T:@format0o; ; [I"0When +src+ is the path to an existing file ;TI"6and +dest+ is the path to an existing directory, ;TI"Ncreates a hard link at <tt>dest/src</tt> pointing to +src+; returns zero:;T@o;; [ I"7Dir.children('tmp2') # => ["t.dat"] ;TI"0Dir.children('tmp3') # => [] ;TI"/FileUtils.ln('tmp2/t.dat', 'tmp3') # => 0 ;TI"7Dir.children('tmp3') # => ["t.dat"] ;T; 0o; ; [ I"7When +src+ is an array of paths to existing files ;TI"6and +dest+ is the path to an existing directory, ;TI"+then for each path +target+ in +src+, ;TI"Gcreates a hard link at <tt>dest/target</tt> pointing to +target+; ;TI"returns +src+:;T@o;; [I"ADir.children('tmp4/') # => [] ;TI"[FileUtils.ln(['tmp0/t.txt', 'tmp2/t.dat'], 'tmp4/') # => ["tmp0/t.txt", "tmp2/t.dat"] ;TI"QDir.children('tmp4/') # => ["t.dat", "t.txt"] ;T; 0o; ; [I"Keyword arguments:;T@o:RDoc::Markup::List: @type:BULLET:@items[o:RDoc::Markup::ListItem:@label0; [o; ; [I";<tt>force: true</tt> - overwrites +dest+ if it exists.;To;;0; [o; ; [I"1<tt>noop: true</tt> - does not create links.;To;;0; [o; ; [I";<tt>verbose: true</tt> - prints an equivalent command:;T@o;; [I"=FileUtils.ln('tmp0/t.txt', 'tmp1/t.lnk', verbose: true) ;TI"7FileUtils.ln('tmp2/t.dat', 'tmp3', verbose: true) ;TI"HFileUtils.ln(['tmp0/t.txt', 'tmp2/t.dat'], 'tmp4/', verbose: true) ;T; 0o; ; [I"Output:;T@o;; [I"ln tmp0/t.txt tmp1/t.lnk ;TI"ln tmp2/t.dat tmp3 ;TI"$ln tmp0/t.txt tmp2/t.dat tmp4/ ;T; 0o; ; [I"CRaises an exception if +dest+ is the path to an existing file ;TI"0and keyword argument +force+ is not +true+.;T@o; ; [I";Related: FileUtils.link_entry (has different options).;T: @fileI"lib/fileutils.rb;T:0@omit_headings_from_table_of_contents_below000[[I" link;To;; [ ;@^;0I"5(src, dest, force: nil, noop: nil, verbose: nil);T@^FI"FileUtils;TcRDoc::NormalModule00
[+]
..
[+]
NoWrite
[-] symlink-c.ri
[edit]
[-] makedirs-c.ri
[edit]
[-] chmod-i.ri
[edit]
[-] copy_stream-c.ri
[edit]
[-] cp-i.ri
[edit]
[-] copy_stream-i.ri
[edit]
[-] rm_rf-i.ri
[edit]
[-] remove_file-i.ri
[edit]
[-] ln_sr-i.ri
[edit]
[-] rm-c.ri
[edit]
[-] link-i.ri
[edit]
[-] copy_file-i.ri
[edit]
[-] collect_method-c.ri
[edit]
[-] cp_lr-i.ri
[edit]
[-] ln-c.ri
[edit]
[-] link_entry-c.ri
[edit]
[-] copy_entry-c.ri
[edit]
[-] rm_rf-c.ri
[edit]
[-] ln_s-i.ri
[edit]
[-] mkpath-i.ri
[edit]
[-] rm_r-i.ri
[edit]
[-] ln-i.ri
[edit]
[-] chmod_R-i.ri
[edit]
[-] move-c.ri
[edit]
[-] cmp-c.ri
[edit]
[-] touch-c.ri
[edit]
[-] getwd-c.ri
[edit]
[-] cd-i.ri
[edit]
[-] remove_entry-c.ri
[edit]
[+]
Verbose
[-] cp_r-i.ri
[edit]
[-] cp-c.ri
[edit]
[-] cdesc-FileUtils.ri
[edit]
[-] mkdir-c.ri
[edit]
[-] cp_r-c.ri
[edit]
[-] rmdir-c.ri
[edit]
[-] mkdir_p-i.ri
[edit]
[-] remove_dir-i.ri
[edit]
[-] rmdir-i.ri
[edit]
[-] chdir-c.ri
[edit]
[-] compare_file-i.ri
[edit]
[-] copy-i.ri
[edit]
[-] ln_sr-c.ri
[edit]
[-] chmod_R-c.ri
[edit]
[-] mkpath-c.ri
[edit]
[-] compare_file-c.ri
[edit]
[-] compare_stream-i.ri
[edit]
[-] remove_entry-i.ri
[edit]
[-] uptodate%3f-c.ri
[edit]
[-] options_of-c.ri
[edit]
[-] mv-i.ri
[edit]
[-] identical%3f-c.ri
[edit]
[-] remove-i.ri
[edit]
[-] chown_R-i.ri
[edit]
[-] touch-i.ri
[edit]
[-] rm_f-i.ri
[edit]
[-] link_entry-i.ri
[edit]
[-] rm-i.ri
[edit]
[-] install-i.ri
[edit]
[-] remove_entry_secure-i.ri
[edit]
[-] ln_sf-i.ri
[edit]
[-] chown-i.ri
[edit]
[-] remove_dir-c.ri
[edit]
[-] safe_unlink-i.ri
[edit]
[+]
DryRun
[-] ln_sf-c.ri
[edit]
[-] install-c.ri
[edit]
[-] options-c.ri
[edit]
[-] getwd-i.ri
[edit]
[-] chmod-c.ri
[edit]
[-] chdir-i.ri
[edit]
[-] move-i.ri
[edit]
[-] remove_entry_secure-c.ri
[edit]
[-] cd-c.ri
[edit]
[-] compare_stream-c.ri
[edit]
[-] commands-c.ri
[edit]
[-] symlink-i.ri
[edit]
[-] mkdir-i.ri
[edit]
[-] rmtree-c.ri
[edit]
[-] link-c.ri
[edit]
[-] copy_entry-i.ri
[edit]
[-] copy_file-c.ri
[edit]
[-] pwd-c.ri
[edit]
[-] rmtree-i.ri
[edit]
[-] safe_unlink-c.ri
[edit]
[-] chown_R-c.ri
[edit]
[-] have_option%3f-c.ri
[edit]
[-] cmp-i.ri
[edit]
[-] mkdir_p-c.ri
[edit]
[-] chown-c.ri
[edit]
[-] remove-c.ri
[edit]
[-] remove_file-c.ri
[edit]
[-] makedirs-i.ri
[edit]
[-] mv-c.ri
[edit]
[-] pwd-i.ri
[edit]
[-] copy-c.ri
[edit]
[-] ln_s-c.ri
[edit]
[-] rm_f-c.ri
[edit]
[-] cp_lr-c.ri
[edit]
[-] uptodate%3f-i.ri
[edit]
[-] rm_r-c.ri
[edit]
[-] identical%3f-i.ri
[edit]