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 <[email protected]> wrote:
> 
> Esteban Lorenzano <[email protected]> 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


Reply via email to