I am seeing some odd behavior with FileUtils.rm_rf on Windows 2000. I
have an an external drive mounted to C:\work on an NTFS partition.
When I execute rm_rf on C:\work\somedir, somedir is deleted as
expected, but the drive is also unmounted.
I am running Ruby 1.8.1.
Is this a known issue? If not, what is the appropriate forum for
making a bug report?
John-Mason Shackelford
Software Developer
Pearson Educational Measurement - eMeasurement Group
2510 North Dodge St.
Iowa City, IA 52245
ph. 319-354-9200x6214
john-mason.shackelford@pearson.com
http://etest.ncspearson.com
Sorry for very late reply...
In mail "FileUtils.rm_rf bug on win2k?"
I am seeing some odd behavior with FileUtils.rm_rf on Windows 2000. I
have an an external drive mounted to C:\work on an NTFS partition.
When I execute rm_rf on C:\work\somedir, somedir is deleted as
expected, but the drive is also unmounted.
I am running Ruby 1.8.1.
I cannot reproduce the bug.
Here is a command line log:
C:\>mkdir mnt
C:\>mountvol mnt \\?\Volume{.....} <----- mount A: on C:\mnt
C:\>mkdir mnt\tmp
C:\>mkdir mnt\mountmark
C:\>C:\ruby-vc6\bin\ruby -r fileutils -e 'FileUtils.rm_rf "mnt/tmp"'
C:\>ls mnt
mountmark <---- The volume is still mounted
C:\>
(ls, mkdir is SFU's)
My environment is:
* Ruby 1.8.1 (2003-12-22) [i386-mswin32]
* Visual C++ 6.0
* Windows 2000 Professional
* C: is NTFS
John, could you show me your code snipet, especially around rm_rf?
-- Minero Aoki
ยทยทยท
john-mason.shackelford@pearson.com (John-Mason P. Shackelford) wrote: