FileUtils.rm_rf bug on win2k?

  • Thread starter John-Mason P. Shackelford
  • Start date
J

John-Mason P. Shackelford

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
(e-mail address removed)
http://etest.ncspearson.com
 
M

Minero Aoki

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,534
Members
45,007
Latest member
obedient dusk

Latest Threads

Top