ruby-dev (Japanese) list archive (unofficial mirror)
 help / color / mirror / Atom feed
From: mame@ruby-lang.org
To: ruby-dev@ruby-lang.org
Subject: [ruby-dev:50542] [Ruby trunk Bug#5419][Closed] FileUtils.cp_rの:preserveの動作
Date: Wed, 16 May 2018 08:40:08 +0000 (UTC)	[thread overview]
Message-ID: <redmine.journal-72032.20180516084007.9e5a3509808e2327@ruby-lang.org> (raw)
In-Reply-To: redmine.issue-5419.20111007164614@ruby-lang.org

Issue #5419 has been updated by mame (Yusuke Endoh).

Status changed from Assigned to Closed

fileutils は github の方に切り出されたので、そっちにチケットを作りました。

https://github.com/ruby/fileutils/issues/21

こっちは閉じとこうと思います。

----------------------------------------
Bug #5419: FileUtils.cp_rの:preserveの動作
https://bugs.ruby-lang.org/issues/5419#change-72032

* Author: seki (Masatoshi Seki)
* Status: Closed
* Priority: Normal
* Assignee: seki (Masatoshi Seki)
* Target version: 
* ruby -v: ruby 1.9.4dev (2011-09-05 trunk 33195) [x86_64-darwin11.1.0] 
* Backport: 2.3: UNKNOWN, 2.4: UNKNOWN, 2.5: UNKNOWN
----------------------------------------
FileUtils.cp_rで:preserveとtrueに設定してディレクトリをコピーしたときに、
空でないディレクトリの時刻が設定されません。

おそらく、ディレクトリについて ent.copy_metadata した後に、そのディレクトリ以下にファイルが増えるためだと思います。
2パスで処理して、一巡目にコピー、二巡目にent.copy_metadata したら直るような気がしますが、もっとかっこいい方法もありそうです。




-- 
https://bugs.ruby-lang.org/

  parent reply	other threads:[~2018-05-16  8:40 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-10-07  7:46 [ruby-dev:44581] [Ruby 1.9 - Bug #5419][Open] FileUtils.cp_rの:preserveの動作 Masatoshi Seki
2011-10-07  8:16 ` [ruby-dev:44582] [Ruby 1.9 - Bug #5419] FileUtils.cp_rの:preserveの動作 Nobuyoshi Nakada
2011-10-07 11:13   ` [ruby-dev:44584] " Masatoshi SEKI
2011-10-07  8:17 ` [ruby-dev:44583] [Ruby 1.9 - Bug #5419][Assigned] FileUtils.cp_rの:preserveの動作 Nobuyoshi Nakada
2011-10-07 11:14   ` [ruby-dev:44585] " Masatoshi SEKI
2018-05-16  8:40 ` mame [this message]
2018-05-16  9:13 ` [ruby-dev:50544] [Ruby trunk Bug#5419] FileUtils.cp_rの:preserveの動作 knu
2018-05-16  9:19 ` [ruby-dev:50545] " knu

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-list from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.ruby-lang.org/en/community/mailing-lists/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=redmine.journal-72032.20180516084007.9e5a3509808e2327@ruby-lang.org \
    --to=ruby-dev@ruby-lang.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).