PHPDaemon\FS\FileSystem::lstat PHP Method

lstat() public static method

lstat()
public static lstat ( string $path, callable $cb, integer $pri = EIO_PRI_DEFAULT ) : resource | true
$path string Path
$cb callable Callback
$pri integer Priority
return resource | true
    public static function lstat($path, $cb, $pri = EIO_PRI_DEFAULT)
    {
        $cb = CallbackWrapper::forceWrap($cb);
        if (!self::$supported) {
            $cb($path, FileSystem::statPrepare(lstat($path)));
            return true;
        }
        return eio_lstat($path, $pri, function ($path, $stat) use($cb) {
            $cb($path, FileSystem::statPrepare($stat));
        }, $path);
    }