https://redmine.ruby-lang.org/https://redmine.ruby-lang.org/favicon.ico?17113305112017-05-22T11:23:43ZRuby Issue Tracking SystemRuby master - Feature #13576: File#to_path shall be deletedhttps://redmine.ruby-lang.org/issues/13576?journal_id=650222017-05-22T11:23:43Znobu (Nobuyoshi Nakada)nobu@ruby-lang.org
<ul></ul><p>Agree, it has no meanings.</p> Ruby master - Feature #13576: File#to_path shall be deletedhttps://redmine.ruby-lang.org/issues/13576?journal_id=650542017-05-23T17:41:17ZEregon (Benoit Daloze)
<ul></ul><p>This could break methods which take a pathname-like object and call #to_path when a File is passed to them (e.g. File.delete(file), etc).<br>
I am not saying it is good practice, but I think it should be evaluated for compatibility.</p>
<p>Maybe it's just easier to return nil for to_path on that case, just like File#path?</p> Ruby master - Feature #13576: File#to_path shall be deletedhttps://redmine.ruby-lang.org/issues/13576?journal_id=788372019-06-24T20:20:17Zjeremyevans0 (Jeremy Evans)merch-redmine@jeremyevans.net
<ul><li><strong>Tracker</strong> changed from <i>Bug</i> to <i>Feature</i></li><li><strong>Backport</strong> deleted (<del><i>2.2: UNKNOWN, 2.3: UNKNOWN, 2.4: UNKNOWN</i></del>)</li></ul>