ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Bodewig <bode...@apache.org>
Subject Re: [PATCH] Delete.java --> Re: delete error
Date Wed, 22 Aug 2001 15:15:25 GMT
On Wed, 22 Aug 2001, Matthew Inger <matti@sedonacorp.com> 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 considered symlinks.
This meant that you couldn't remove files inside /tmp - and to know
how to work around that, you'd need to know that /tmp is a symlink.

Expand this to situations where user home directories are symlinked
together from some NFS server to the workstation you are currently
logged in to - you cannot simply work in your ~, you will have to know
the mount points for all machines ....

This approach (I've been playing with it before) is a bit to simple.

And then you'll have to guard this against file systems where
connonical path and absolute path are totally different (because the
REAL filename is something Java's File class abstraction cannot deal
with), say WORKSTATION::DKA100:[USER$HOME]TEST.JAVA;1 .

Stefan

The file specification above used to point to a file below my home dir
on the first SCSI drive of my workstation in a former live - and there
wouldn't have been a java file in it.

Mime
View raw message