Project

General

Profile

Actions

Feature #9857

closed

Pathname#birthtime

Added by znz (Kazuhiro NISHIYAMA) over 10 years ago. Updated over 10 years ago.

Status:
Closed
Target version:
[ruby-dev:48232]

Description

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


Files

pathname-birthtime.patch (1.29 KB) pathname-birthtime.patch znz (Kazuhiro NISHIYAMA), 05/27/2014 02:28 PM
pathname_birthtime.patch (4.34 KB) pathname_birthtime.patch znz (Kazuhiro NISHIYAMA), 06/28/2014 10:32 AM

Related issues 1 (0 open1 closed)

Related to Ruby master - Feature #9647: File::Stat#birthtimeの追加Closedmatz (Yukihiro Matsumoto)03/17/2014Actions

Updated by znz (Kazuhiro NISHIYAMA) over 10 years ago

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

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

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0Like0Like0Like0