> Basically the chdir isn't needed anyway. It appears you hit a bug in > the stdlib: it seems to try to delete "./<tmpfilename>" but fails > because the file does not exist (remember that "." points to a different > directory then). Point is that I encountered this while using RubyZip. If I'm trying to edit a zip file in another directory with RubyZip, it is unable to delete the temp file it creates. And there I have tried using absolute paths, it doesn't work.