ruby-dev (Japanese) list archive (unofficial mirror)
 help / color / mirror / Atom feed
* [ruby-dev:44581] [Ruby 1.9 - Bug #5419][Open] FileUtils.cp_rの:preserveの動作
@ 2011-10-07  7:46 Masatoshi Seki
  2011-10-07  8:16 ` [ruby-dev:44582] [Ruby 1.9 - Bug #5419] FileUtils.cp_rの:preserveの動作 Nobuyoshi Nakada
                   ` (4 more replies)
  0 siblings, 5 replies; 8+ messages in thread
From: Masatoshi Seki @ 2011-10-07  7:46 UTC (permalink / raw)
  To: ruby developers list


Issue #5419 has been reported by Masatoshi Seki.

----------------------------------------
Bug #5419: FileUtils.cp_rの:preserveの動作
http://redmine.ruby-lang.org/issues/5419

Author: Masatoshi Seki
Status: Open
Priority: Normal
Assignee: 
Category: lib
Target version: 1.9.3
ruby -v: ruby 1.9.4dev (2011-09-05 trunk 33195) [x86_64-darwin11.1.0] 


FileUtils.cp_rで:preserveとtrueに設定してディレクトリをコピーしたときに、
空でないディレクトリの時刻が設定されません。

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



-- 
http://redmine.ruby-lang.org

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2018-05-16  9:19 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
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 ` [ruby-dev:50542] [Ruby trunk Bug#5419][Closed] FileUtils.cp_rの:preserveの動作 mame
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

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).