On Wed, Sep 12, 2001 at 06:58:04AM -0400, Chris Nandor wrote:
> At 09:29 +0200 2001.09.12, Michael G Schwern wrote:
> >So, in the interest of good old fashioned Laziness, we should have a
> >module which does this for us.
> >
> >    use portability;
> >
> >    unlink($file);  # does everything that needs to be done to make
> >                    # unlinking safe on all platforms.
> >
> >and I'm going to encourage the macperl and vmsperl folks to start
> >working on this module.
> 
> Interesting; I can't think of anything offhand that MacPerl would put in here.

But Windows and OS/2 would need set write permission on a file before
attempting to delete it. (or is it slightly more complex than this)

[is there another list I need to gratuitously cross post to?]

Should unix do the same if you own but don't currently have write permission
on the directory the file is in?
Are there operating systems where you can happily delete a file from a
directory you own even if you don't have write permission on it (or whatever
permission you would need to add more files)
[note "you own". The sticky bit being set on /tmp means that you can't delete
other people's files even though you have permission to add and delete your
own]

Nicholas Clark

PS big HI to NTMAIL at cnnt.core-net.com which will reply to me with a blank
   message. GRRRRR.

Reply via email to