https://redmine.ruby-lang.org/https://redmine.ruby-lang.org/favicon.ico?17113305112011-04-22T12:13:05ZRuby Issue Tracking SystemRuby master - Feature #4189: FileUtils#ln_rhttps://redmine.ruby-lang.org/issues/4189?journal_id=165812011-04-22T12:13:05Znaruse (Yui NARUSE)naruse@airemix.jp
<ul><li><strong>Status</strong> changed from <i>Open</i> to <i>Assigned</i></li><li><strong>Assignee</strong> set to <i>matz (Yukihiro Matsumoto)</i></li></ul><p>=begin</p>
<p>=end</p> Ruby master - Feature #4189: FileUtils#ln_rhttps://redmine.ruby-lang.org/issues/4189?journal_id=165822011-04-22T13:03:59Zmatz (Yukihiro Matsumoto)matz@ruby.or.jp
<ul></ul><p>=begin<br>
Since ln command does not have -r option, I am kind of hesitating to add ln_r. I understand usefulness of the method. But I am not sure yet where to add (is fileutils the best place?), and what to add (is ln_r the best name for the method?).</p>
<p>matz.<br>
=end</p> Ruby master - Feature #4189: FileUtils#ln_rhttps://redmine.ruby-lang.org/issues/4189?journal_id=165832011-04-22T13:16:41Zsakuro (Sakuro OZAWA)
<ul></ul><p>=begin<br>
FYI<br>
X11 distribution has lndir command, it creates real directories and file symlinks though.<br>
=end</p> Ruby master - Feature #4189: FileUtils#ln_rhttps://redmine.ruby-lang.org/issues/4189?journal_id=166122011-04-25T05:33:02Zjohan556 (Johan Holmberg)johan556@gmail.com
<ul></ul><p>=begin<br>
GNU cp has the -l option, so I think the proposed method is similiar to "cp -lr" on Linux systems.<br>
=end</p> Ruby master - Feature #4189: FileUtils#ln_rhttps://redmine.ruby-lang.org/issues/4189?journal_id=273892012-06-24T06:54:26Zreset (Jamie Winsor)jamie@vialstudios.com
<ul></ul><p>This ticket hasn't seen action in a year, but I wanted to chime in and +1 the feature.</p>
<p>Having a convenience function to recursively create hard links based on a source directory is a rare need, but a need, nonetheless. I think FileUtils is a fine place for it when compared to the other choices of where to place it in Ruby core.</p> Ruby master - Feature #4189: FileUtils#ln_rhttps://redmine.ruby-lang.org/issues/4189?journal_id=330642012-11-19T07:09:23Zzzak (zzak _)
<ul><li><strong>File</strong> <a href="/attachments/3256">fileutils_ln_r.patch</a> <a class="icon-only icon-download" title="Download" href="/attachments/download/3256/fileutils_ln_r.patch">fileutils_ln_r.patch</a> added</li><li><strong>Description</strong> updated (<a title="View differences" href="/journals/33064/diff?detail_id=23320">diff</a>)</li></ul><p>Adding Thomas' patch from github.</p> Ruby master - Feature #4189: FileUtils#ln_rhttps://redmine.ruby-lang.org/issues/4189?journal_id=337262012-11-24T10:54:01Zmame (Yusuke Endoh)mame@ruby-lang.org
<ul><li><strong>Target version</strong> set to <i>2.6</i></li></ul> Ruby master - Feature #4189: FileUtils#ln_rhttps://redmine.ruby-lang.org/issues/4189?journal_id=680322017-11-29T08:56:58Zmatz (Yukihiro Matsumoto)matz@ruby.or.jp
<ul></ul><p>Accepted, but I am against the name <code>ln_r</code> because it behaves differently from <code>ln -r</code> (relative).</p>
<p>Matz.</p> Ruby master - Feature #4189: FileUtils#ln_rhttps://redmine.ruby-lang.org/issues/4189?journal_id=680332017-11-29T08:59:45Zakr (Akira Tanaka)akr@fsij.org
<ul></ul><p>After discussion at the developer meeting, cp_lr may be an consensus.</p> Ruby master - Feature #4189: FileUtils#ln_rhttps://redmine.ruby-lang.org/issues/4189?journal_id=686672017-12-25T18:14:59Znaruse (Yui NARUSE)naruse@airemix.jp
<ul><li><strong>Target version</strong> deleted (<del><i>2.6</i></del>)</li></ul> Ruby master - Feature #4189: FileUtils#ln_rhttps://redmine.ruby-lang.org/issues/4189?journal_id=708942018-03-08T08:33:13Zmame (Yusuke Endoh)mame@ruby-lang.org
<ul><li><strong>File</strong> <a href="/attachments/7070">fileutils_cp_lr.patch</a> <a class="icon-only icon-download" title="Download" href="/attachments/download/7070/fileutils_cp_lr.patch">fileutils_cp_lr.patch</a> added</li></ul><p>I'll commit this patch that introduces <code>FileUtils.cp_lr</code> in a few days. Let me know if there is a problem.</p> Ruby master - Feature #4189: FileUtils#ln_rhttps://redmine.ruby-lang.org/issues/4189?journal_id=708952018-03-08T08:33:30Zmame (Yusuke Endoh)mame@ruby-lang.org
<ul><li><strong>Assignee</strong> changed from <i>matz (Yukihiro Matsumoto)</i> to <i>mame (Yusuke Endoh)</i></li></ul> Ruby master - Feature #4189: FileUtils#ln_rhttps://redmine.ruby-lang.org/issues/4189?journal_id=709652018-03-13T08:18:06Zmame (Yusuke Endoh)mame@ruby-lang.org
<ul><li><strong>Status</strong> changed from <i>Assigned</i> to <i>Closed</i></li></ul><p>Applied in changeset trunk|r62739.</p>
<hr>
<p>Add FileUtils#cp_lr</p>
<ul>
<li>lib/fileutils.rb: Add FileUtils#cp_lr. This method creates hard links<br>
of each file from directory to another directory recursively.<br>
This patch is based on Thomas Sawyers and Zachary Scott.<br>
[Feature <a class="issue tracker-2 status-5 priority-4 priority-default closed" title="Feature: FileUtils#ln_r (Closed)" href="https://redmine.ruby-lang.org/issues/4189">#4189</a>] <a href="/issues/4189">[ruby-core:33820]</a></li>
</ul>