In Windows, there are junctions, which are more or less equivalent. https://msdn.microsoft.com/en-us/library/windows/desktop/aa365006(v=vs.85).a... https://msdn.microsoft.com/en-us/library/windows/desktop/aa365503(v=vs.85).a... Phil On Wed, Apr 20, 2016 at 6:23 PM, Esteban Lorenzano <estebanlm@gmail.com> wrote:
yes it is. but you can create an FFI function to http://linux.die.net/man/2/readlink to get that :)
Esteban
On 20 Apr 2016, at 18:11, Damien Cassou <Damien.Cassou@inria.fr> wrote:
Esteban Lorenzano <estebanlm@gmail.com> writes:
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.
ok for isSymlink, but how do you get to the file pointed to by the symlink? Damien says it's impossible with current FilePlugin.
-- Damien Cassou http://damiencassou.seasidehosting.st
"Success is the ability to go from one failure to another without losing enthusiasm." --Winston Churchill