bwv549
5/4/2006 9:15:00 PM
What is the correct mode to set so that I can delete a windows (ruby
native win32) file? ( e.g., File.chmod(<mode>, filename) ) Does the
containing directory require a certain mode?
A file that is created by a separate executable defies my attempts to
delete it inside a script. I can create files and delete them, but not
this tenacious guy. When I run:
puts "MODE: " + File.stat(file).mode.to_s
p File.stat(file)
I get this output:
MODE: 33188
#<File::Stat dev=0x2, ino=0, mode=0100644, nlink=1, uid=0, gid=0,
.... >
Why would File.stat(file).mode give different output (33188) than
printing the stat object (where the mode=0100644)?
Thanks a bunch.