V
vulpes
I'm running ruby 1.8.5-3 for Cygwin under Win XP Pro SP 2. Here's some
code:
require 'tempfile'
Dir.chdir("./aDir") do
Tempfile.open("johndoe", ".") do |f|
# Can be even empty
end
end
With this code, the temporary file in ./aDir will not be removed. Is
this a bug, a Cygwin/Windows "feature", or what? How to get around
this thing?
code:
require 'tempfile'
Dir.chdir("./aDir") do
Tempfile.open("johndoe", ".") do |f|
# Can be even empty
end
end
With this code, the temporary file in ./aDir will not be removed. Is
this a bug, a Cygwin/Windows "feature", or what? How to get around
this thing?