BaseXdb/basex — Issue #277: Symbolic links on UNIX-like OS are not detected as such.
Author: holu
Created: 2011-11-18 08:35:00+00:00
State: open

Probably only to fix using native code (via JNI) or Java7.

Reproduce with:

$ mkdir a
$ cd a/
$ ln -s ../a/ back
$ cd ..
$ tree .
.
└── a
└── back -> ../a/

2 directories, 0 files
$ basex -q"file:list('./a', true())"
./a/back/back/back/back/back/back/back/back/back/back/back/back/back/back/back/back/back/back/back/back/back/back/back/back/back/back/back/back/back/back/back/back/back ./a/back/back/back/back/back/back/back/back/back/back/back/back/back/back/back/back/back/back/back/back/back/back/back/back/back/back/back/back/back/back/back/back ./a/back/back/back/back/back/back/back/back/back/back/back/back/back/back/back/back/back/back/back/back/back/back/back/back/back/back/back/back/back/back/back ./a/back/back/back/back/back/back/back/back/back/back/back/back/back/back/back/back/back/back/back/back/back/back/back/back/back/back/back/back/back/back ./a/back/back/back/back/back/back/back/back/back/back/back/back/back/back/back/back/back/back/back/back/back/back/back/back/back/back/back/back/back ./a/back/back/back/back/back/back/back/back/back/back/back/back/back/back/back/back/back/back/back/back/back/back/back/back/back/back/back/back ./a/back/back/back/back/back/back/back/back/back/back/back/back/back/back/back/back/back/back/back/back/back/back/back/back/back/back/back ./a/back/back/back/back/back/back/back/back/back/back/back/back/back/back/back/back/back/back/back/back/back/back/back/back/back/back ./a/back/back/back/back/back/back/back/back/back/back/back/back/back/back/back/back/back/back/back/back/back/back/back/back/back ./a/back/back/back/back/back/back/back/back/back/back/back/back/back/back/back/back/back/back/back/back/back/back/back/back ./a/back/back/back/back/back/back/back/back/back/back/back/back/back/back/back/back/back/back/back/back/back/back/back ./a/back/back/back/back/back/back/back/back/back/back/back/back/back/back/back/back/back/back/back/back/back/back ./a/back/back/back/back/back/back/back/back/back/back/back/back/back/back/back/back/back/back/back/back/back ./a/back/back/back/back/back/back/back/back/back/back/back/back/back/back/back/back/back/back/back/back ./a/back/back/back/back/back/back/back/back/back/back/back/back/back/back/back/back/back/back/back ./a/back/back/back/back/back/back/back/back/back/back/back/back/back/back/back/back/back/back ./a/back/back/back/back/back/back/back/back/back/back/back/back/back/back/back/back/back ./a/back/back/back/back/back/back/back/back/back/back/back/back/back/back/back/back ./a/back/back/back/back/back/back/back/back/back/back/back/back/back/back/back ./a/back/back/back/back/back/back/back/back/back/back/back/back/back/back ./a/back/back/back/back/back/back/back/back/back/back/back/back/back ./a/back/back/back/back/back/back/back/back/back/back/back/back ./a/back/back/back/back/back/back/back/back/back/back/back ./a/back/back/back/back/back/back/back/back/back/back ./a/back/back/back/back/back/back/back/back/back ./a/back/back/back/back/back/back/back/back ./a/back/back/back/back/back/back/back ./a/back/back/back/back/back/back ./a/back/back/back/back/back ./a/back/back/back/back ./a/back/back/back ./a/back/back ./a/back