From: Minero Aoki Date: 2004-08-09T07:54:45+09:00 Subject: Re: FileUtils.rm_rf bug on win2k? Sorry for very late reply... In mail "FileUtils.rm_rf bug on win2k?" john-mason.shackelford@pearson.com (John-Mason P. Shackelford) wrote: > 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