Mateusz Winiarski
7/9/2008 6:12:00 PM
1. I'm in a proper directory (using: puts Dir.entries(Dir.pwd)
2. File do not need to be closed, because it haven't been open (it's
just file in a folder)
3. Error message:
Errno::EACCES: Permission denied - file
4. I've used chmod in previous line:
File.chmod(0644, file)
chmod return flag: 1 (one)
5. Using File.delete or File.unlink gives same error message
On Jul 9, 6:26=A0pm, Serg Koren <myEmailLi...@comcast.net> wrote:
> When all else fails, try using the full path to the file. =A0You're =A0
> probably in the wrong directory.
> This works for me.
>
> On Jul 9, 2008, at 6:51 AM, MAwiniarski wrote:
>
> > Greetings,
>
> > How to delete a file in Win XP ?
>
> > code:
>
> > File.chmod(0644, file)
> > File.delete(file)
>
> > does not working.
>
> > THX
>
>