From: Logan Capaldo Date: 2007-02-04T06:18:34+09:00 Subject: Re: yet another linux <-> win32 question On Sun, Feb 04, 2007 at 05:59:48AM +0900, Peter Szinek wrote: > Hi, > > Sorry for these dumb questions but I am really off when it comes to > doing anything with win32. > > So, the thing is that I have a function that creates a temp file, then > does something with it and deletes it. I am doing this with > > File.delete(temp_filename) > > On linux this script runs without any problems, however under windows I > am getting 'Permission denied (Errno::EACCESS). > > Since the file is unquestionably deletable, I think maybe windows locks > it for whatever reason (or maybe not) - am I doing something wrong, or > if not, is there a workaround for this? > Did you #close the file before you tried to delete it? > Thanks, > Peter > > __ > http://www.rubyrailways.com