Project

General

Profile

Actions

Feature #4189

closed

FileUtils#ln_r

Added by trans (Thomas Sawyer) almost 14 years ago. Updated over 6 years ago.

Status:
Closed
Target version:
-
[ruby-core:33820]

Description

=begin
I wrote a method for FileUtils to do recursive hard linking. It works just like cp_r but links instead of copies.

The code can be found along with the pull request I made to ruby/ruby on Github:

http://github.com/ruby/ruby/pull/4#issuecomment-631067

It's a pretty handy method for "staging" read-only files. For example I've used it to stage test fixture files in a tmp testing location and I've used it collect together a set of files for packaging into a tarball.
=end


Files

fileutils_ln_r.patch (4.72 KB) fileutils_ln_r.patch zzak (zzak _), 11/19/2012 07:09 AM
fileutils_cp_lr.patch (4.72 KB) fileutils_cp_lr.patch mame (Yusuke Endoh), 03/08/2018 08:29 AM
Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0