it has it. this is how is done in mac: *isSymlink = [[fileAttributes objectForKey: NSFileType] isEqualToString: NSFileTypeSymbolicLink] ? 1 : 0; and this how is done in linux: stat(unixPath, &statBuf) && lstat(unixPath, &statBuf) ... *isSymlink = S_ISLNK(statBuf.st_mode); ⦠and in windows is always false. Esteban
On 20 Apr 2016, at 16:36, Damien Cassou <damien.cassou@inria.fr> wrote:
Damien Pollet <damien.pollet+pharo@gmail.com> writes:
Specifically, there is DiskStore>>isSymlink: but the FilePlugin doesn't seem to have a primitive for the readlink(2) function of the libc
I guess this is work for Mariano then :-)
-- Damien Cassou http://damiencassou.seasidehosting.st
"Success is the ability to go from one failure to another without losing enthusiasm." --Winston Churchill