Actions
Feature #9857
closedPathname#birthtime
Description
File.birthtime
が追加されたので Pathname#birthtime
もあると良いのではないでしょうか。
Files
Updated by znz (Kazuhiro NISHIYAMA) over 10 years ago
- File pathname-birthtime.patch pathname-birthtime.patch added
Updated by znz (Kazuhiro NISHIYAMA) over 10 years ago
- Related to Feature #9647: File::Stat#birthtimeの追加 added
Updated by naruse (Yui NARUSE) over 10 years ago
いいんじゃないでしょうか。
pathnameのメンテナはakrさんでしたっけ?
Updated by nobu (Nobuyoshi Nakada) over 10 years ago
- Status changed from Open to Assigned
- Assignee set to akr (Akira Tanaka)
Updated by akr (Akira Tanaka) over 10 years ago
- Status changed from Assigned to Feedback
機能はいいと思うんですが、この実装だと respond_to? で true になっちゃいますねぇ。
% ./ruby -rpathname -e 'p Pathname(".").respond_to?(:birthtime)'
true
Updated by znz (Kazuhiro NISHIYAMA) over 10 years ago
- File pathname_birthtime.patch pathname_birthtime.patch added
Mac OS X と Linux で respond_to?
への対応も確認しました。
Windows は環境がなくて対応できていません。
Updated by usa (Usaku NAKAMURA) over 10 years ago
Win32的には全くお話になっていませんが、パッチのパッチを出すのは面倒なので、取り込まれたら対応します。
Updated by akr (Akira Tanaka) over 10 years ago
- Status changed from Feedback to Closed
- % Done changed from 0 to 100
Applied in changeset r46602.
- ext/pathname/pathname.c (path_birthtime): New method,
Pathname#birthtime.
Proposed by Kazuhiro NISHIYAMA. [ruby-dev:48232] [Feature #9857]
Actions
Like0
Like0Like0Like0Like0Like0Like0Like0Like0