From: coma_killen@...
Date: 2002-09-03T20:10:35+09:00
Subject: Problem with Ruby and strange file name in windows
Ok, I admit this must be a rare situation but is this behavior ok:
E:\test\dots_in_log>dir
Directory of E:\test\dots_in_log
2002-09-03 13:02
.
2002-09-03 13:02 ..
2002-09-03 12:51 1 897 ...A.log
2002-09-03 13:02 0 t.log
E:\test\dots_in_log>irb
irb(main):001:0> system "move ...A.log t2.log"
false
irb(main):002:0> exit
E:\test\dots_in_log>move ...A.log t2.log
E:\test\dots_in_log>dir
Directory of E:\test\dots_in_log
2002-09-03 13:05 .
2002-09-03 13:05 ..
2002-09-03 13:02 0 t.log
2002-09-03 12:51 1 897 t2.log
E:\test\dots_in_log>
Why doesn't system() handle that? And it doesn't work with File.rename
either.
Any hints?
Ruby is 1.6.7 and this is on Win XP Pro.
Thanks,
/Karsten Magnuer
--
http://fastmail.fm
- Taking the "ail" out of email!