On 2009 Feb 1, at 17:49, Erik de Castro Lopo wrote:
The following code creates a symbolic link in the current directory
and then uses System.Posix.Files.getFileStatus to get the status of
the link.
However, isDirectory returns True and isSymbolicLink returns False
which is very different from wh
Duncan Coutts wrote:
> No, it is the correct POSIX behaviour. You are thinking of lstat() which
> is what getSymbolicLinkStatus uses. The getFileStatus function calls
> stat().
Maybe this is a naming issue.
In C I think of "lstat" as "stat" but don't follow link.
If getSymbolicLinkStatus was in
On Mon, 2009-02-02 at 09:49 +1100, Erik de Castro Lopo wrote:
> Hi all,
>
> The following code creates a symbolic link in the current directory
> and then uses System.Posix.Files.getFileStatus to get the status of
> the link.
>
> However, isDirectory returns True and isSymbolicLink returns False
Erik de Castro Lopo wrote:
> The following code creates a symbolic link in the current directory
> and then uses System.Posix.Files.getFileStatus to get the status of
> the link.
If I use getSymbolicLinkStatus instead of getFileStatus I get the
result I expect. However, using getSymbolicLinkStatu
Hi all,
The following code creates a symbolic link in the current directory
and then uses System.Posix.Files.getFileStatus to get the status of
the link.
However, isDirectory returns True and isSymbolicLink returns False
which is very different from what the stat() system call on a POSIX
system w