On 10/3/05, Tim <Tim.Ferrell / s0nspark.com> wrote:
>
> I've split it up a bit and discovered that the exception is thrown when
> File.unlink tries to remove files in the folder after the copy. I have
> checked, double checked, and triple checked that I have Full Control of
> the tree in question (and I have no trouble doing whatever file ops I
> like from Explorer) but for some reason I can't delete these files with
> ruby.
>
> Any other ideas? Things to check or try?
>

You could check to see if you don't accidentaly keep the file open.
Something like...

lines = File.open("foo", "r").readlines

will prevent you from removing foo until you exit the ruby script
since you leave it open

--
Cristi BALAN