https://redmine.ruby-lang.org/
https://redmine.ruby-lang.org/favicon.ico?1711330511
2012-06-30T04:29:45Z
Ruby Issue Tracking System
Ruby master - Feature #6671: File.split_all and File.split_root
https://redmine.ruby-lang.org/issues/6671?journal_id=27569
2012-06-30T04:29:45Z
trans (Thomas Sawyer)
<ul></ul><p>Typo in that last example, it should be <code>split_root</code> obviously.</p>
Ruby master - Feature #6671: File.split_all and File.split_root
https://redmine.ruby-lang.org/issues/6671?journal_id=27570
2012-06-30T04:50:46Z
marcandre (Marc-Andre Lafortune)
marcandre-ruby-core@marc-andre.ca
<ul></ul><p>How about:</p>
<pre><code>'a/b/c'.split('/') # => ['a','b','c']
</code></pre>
<p>And</p>
<pre><code>root, _, path = 'a/b/c'.partition('/')
root #=> 'a'
path #=> 'b/c'
</code></pre>
Ruby master - Feature #6671: File.split_all and File.split_root
https://redmine.ruby-lang.org/issues/6671?journal_id=27575
2012-06-30T05:52:38Z
Eregon (Benoit Daloze)
<ul></ul><p>marcandre (Marc-Andre Lafortune) wrote:</p>
<blockquote>
<p>How about:</p>
<pre><code>'a/b/c'.split('/') # => ['a','b','c']
</code></pre>
<p>And</p>
<pre><code>root, _, path = 'a/b/c'.partition('/')
root #=> 'a'
path #=> 'b/c'
</code></pre>
</blockquote>
<p>I guess that might be problematic for absolute paths:</p>
<pre><code>> "/a/b/c".split '/'
=> ["", "a", "b", "c"]
> "/a/b/c".partition '/'
=> ["", "/", "a/b/c"]
</code></pre>
<p>Is the feature wanted Pathname#each_filename (for split_all) ?</p>
Ruby master - Feature #6671: File.split_all and File.split_root
https://redmine.ruby-lang.org/issues/6671?journal_id=27622
2012-07-01T06:08:15Z
trans (Thomas Sawyer)
<ul></ul><p>Its also not so simple b/c of variation in file systems, e.g. <code>a\b\c</code>.</p>
Ruby master - Feature #6671: File.split_all and File.split_root
https://redmine.ruby-lang.org/issues/6671?journal_id=31694
2012-10-27T07:13:49Z
ko1 (Koichi Sasada)
<ul><li><strong>Assignee</strong> set to <i>mame (Yusuke Endoh)</i></li></ul><p>mame-san: Please judge this ticket.</p>
Ruby master - Feature #6671: File.split_all and File.split_root
https://redmine.ruby-lang.org/issues/6671?journal_id=31761
2012-10-27T11:45:24Z
mame (Yusuke Endoh)
mame@ruby-lang.org
<ul><li><strong>Status</strong> changed from <i>Open</i> to <i>Assigned</i></li><li><strong>Assignee</strong> changed from <i>mame (Yusuke Endoh)</i> to <i>matz (Yukihiro Matsumoto)</i></li></ul><p>I think I have no right to accept any feature.<br>
Even if I have, I won't use the right without any particular reason.</p>
<p>--<br>
Yusuke Endoh <a href="mailto:mame@tsg.ne.jp" class="email">mame@tsg.ne.jp</a></p>
Ruby master - Feature #6671: File.split_all and File.split_root
https://redmine.ruby-lang.org/issues/6671?journal_id=31764
2012-10-27T12:00:51Z
mame (Yusuke Endoh)
mame@ruby-lang.org
<ul><li><strong>Target version</strong> changed from <i>2.0.0</i> to <i>2.6</i></li></ul>
Ruby master - Feature #6671: File.split_all and File.split_root
https://redmine.ruby-lang.org/issues/6671?journal_id=68797
2017-12-25T18:15:06Z
naruse (Yui NARUSE)
naruse@airemix.jp
<ul><li><strong>Target version</strong> deleted (<del><i>2.6</i></del>)</li></ul>