From: Thomas Sawyer Date: 2010-12-23T10:25:42+09:00 Subject: [ruby-core:33820] [Ruby 1.9-Feature#4189][Open] FileUtils#ln_r Feature #4189: FileUtils#ln_r http://redmine.ruby-lang.org/issues/show/4189 Author: Thomas Sawyer Status: Open, Priority: Normal Category: lib 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. ---------------------------------------- http://redmine.ruby-lang.org