Re: Renaming a File

2001-09-10 Thread Justin Simoni
There was DEFINETLY a race condition, I used a technique similar to this: http://www.stonehenge.com/merlyn/WebTechniques/col54.html to solve the problem. There were so many instances where either the live or the temp file would have been overwritten, it wasn't even, well funny. for the curious

Re: Renaming a File

2001-09-10 Thread Gunther Birznieks
At 08:42 PM 9/10/2001 -0600, Justin Simoni wrote: > > Well, what was your $! when the rename failed? If it was "cross-device > link", > > then you attempted something that you really can't do. > >I don't think it was anything like that, as with many :) real world >problems, it's a bit more compl

Re: Renaming a File

2001-09-10 Thread Justin Simoni
> Well, what was your $! when the rename failed? If it was "cross-device link", > then you attempted something that you really can't do. I don't think it was anything like that, as with many :) real world problems, it's a bit more complicated than that. The file in question on my failure was an

Re: Renaming a File

2001-09-10 Thread Randal L. Schwartz
> "Justin" == Justin Simoni <[EMAIL PROTECTED]> writes: >> Yes, and surprisingly enough, it's called "rename". :) Justin> I've had bad luck using rename, I've had to copy the file to Justin> the new name and deep six the old, check out File::Copy, I Justin> think it ironically, has a functio

Re: Renaming a File

2001-09-10 Thread Brett W. McCoy
> > Yes, and surprisingly enough, it's called "rename". :) > > I've had bad luck using rename, I've had to copy the file to the new name > and deep six the old, check out File::Copy, I think it ironically, has a > function called copy(), or even cp(), my memory eludes me. There's also one called

Re: Renaming a File

2001-09-10 Thread Justin Simoni
> Yes, and surprisingly enough, it's called "rename". :) I've had bad luck using rename, I've had to copy the file to the new name and deep six the old, check out File::Copy, I think it ironically, has a function called copy(), or even cp(), my memory eludes me. -- justin simoni!

Re: Renaming a File

2001-09-10 Thread Randal L. Schwartz
> "Scott" == Scott Heckel <[EMAIL PROTECTED]> writes: Scott> Is there a function that will let you rename a file from say Scott> file.txt to file.bck? Thanks. Yes, and surprisingly enough, it's called "rename". :) -- Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0