Re: [PATCH] Delete.java --> Re: delete error

2001-08-23 Thread Peter Donald
On Thu, 23 Aug 2001 02:37, Matthew Inger wrote: > what would be nice on the filepatterns is to be able check a certain > condition before executing the delete on the file. what you could > essentially > do is to have it exec this command, and check the return code. If the > return code > is non-z

Re: [PATCH] Delete.java --> Re: delete error

2001-08-22 Thread Matthew Inger
Peter Donald wrote: Hi, The problem is that on quite a few different OSes the canonical and absolute paths may differ. In particular case-insensitive file systems reak havoc and are available on all major OSes. I am not sure there is a maintainable way of doing this at the java level. However s

Re: [PATCH] Delete.java --> Re: delete error

2001-08-22 Thread Peter Donald
Hi, The problem is that on quite a few different OSes the canonical and absolute paths may differ. In particular case-insensitive file systems reak havoc and are available on all major OSes. I am not sure there is a maintainable way of doing this at the java level. However several people have

Re: [PATCH] Delete.java --> Re: delete error

2001-08-22 Thread Stefan Bodewig
On Wed, 22 Aug 2001, Matthew Inger <[EMAIL PROTECTED]> wrote: > The way to tell a symbolic link is to compare the absolute path name > of the file, which the canonical path name. Hmm, this won't work - lets say /tmp is a symlink to /var/tmp - following your logic all files in /tmp will be conside

[PATCH] Delete.java --> Re: delete error

2001-08-22 Thread Matthew Inger
[EMAIL PROTECTED] wrote: It's a known feature. To delete symbolic links, one must shell out to the OS to remove it. I don't know about 1.4 and whether it deletes the link instead of the target. /bill -Original Message- From: matti [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 22, 2