Feature #9857

Pathname#birthtime

Added by Kazuhiro NISHIYAMA about 1 year ago. Updated about 1 year ago.

[ruby-dev:48232]
Status:Closed
Priority:Normal
Assignee:Akira Tanaka

Description

File.birthtime が追加されたので Pathname#birthtime もあると良いのではないでしょうか。

pathname-birthtime.patch Magnifier (1.29 KB) Kazuhiro NISHIYAMA, 05/27/2014 02:28 PM

pathname_birthtime.patch Magnifier (4.34 KB) Kazuhiro NISHIYAMA, 06/28/2014 10:32 AM


Related issues

Related to Ruby trunk - Feature #9647: File::Stat#birthtimeの追加 Closed 03/17/2014

Associated revisions

Revision 46602
Added by Akira Tanaka about 1 year ago

  • ext/pathname/pathname.c (path_birthtime): New method, Pathname#birthtime. Proposed by Kazuhiro NISHIYAMA. [Feature #9857]

Revision 46602
Added by Akira Tanaka about 1 year ago

  • ext/pathname/pathname.c (path_birthtime): New method, Pathname#birthtime. Proposed by Kazuhiro NISHIYAMA. [Feature #9857]

Revision 46604
Added by Usaku NAKAMURA about 1 year ago

  • ext/pathname/pathname.c (path_birthtime): Windows support. see [Feature #9857]

Revision 46604
Added by Usaku NAKAMURA about 1 year ago

  • ext/pathname/pathname.c (path_birthtime): Windows support. see [Feature #9857]

History

#2 Updated by Kazuhiro NISHIYAMA about 1 year ago

#3 Updated by Yui NARUSE about 1 year ago

いいんじゃないでしょうか。
pathnameのメンテナはakrさんでしたっけ?

#4 Updated by Nobuyoshi Nakada about 1 year ago

  • Status changed from Open to Assigned
  • Assignee set to Akira Tanaka

#5 Updated by Akira Tanaka about 1 year ago

  • Status changed from Assigned to Feedback

機能はいいと思うんですが、この実装だと respond_to? で true になっちゃいますねぇ。

% ./ruby -rpathname -e 'p Pathname(".").respond_to?(:birthtime)'
true

#6 Updated by Kazuhiro NISHIYAMA about 1 year ago

Mac OS X と Linux で respond_to? への対応も確認しました。
Windows は環境がなくて対応できていません。

#7 Updated by Usaku NAKAMURA about 1 year ago

Win32的には全くお話になっていませんが、パッチのパッチを出すのは面倒なので、取り込まれたら対応します。

#8 Updated by Akira Tanaka about 1 year 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. [Feature #9857]

Also available in: Atom PDF