/** * {@inheritdoc} */ public function lstat($path) { $this->incrementPending(); $promisor = new Deferred(); $priority = \EIO_PRI_DEFAULT; \eio_lstat($path, $priority, [$this, "onStat"], $promisor); return $promisor->promise(); }
public static function lstat($path, $cb, $pri = EIO_PRI_DEFAULT) { if (!self::$supported) { call_user_func($cb, $path, FS::statPrepare(lstat($path))); return; } return eio_lstat($path, $pri, function ($path, $stat) use($cb) { call_user_func($cb, $path, FS::statPrepare($stat)); }, $path); }
/** * lstat() * @param string $path Path * @param callable $cb Callback * @param integer $pri Priority * @return resource|true */ public static function lstat($path, $cb, $pri = EIO_PRI_DEFAULT) { $cb = CallbackWrapper::forceWrap($cb); if (!self::$supported) { call_user_func($cb, $path, FileSystem::statPrepare(lstat($path))); return true; } return eio_lstat($path, $pri, function ($path, $stat) use($cb) { call_user_func($cb, $path, FileSystem::statPrepare($stat)); }, $path); }
/** * {@inheritdoc} */ public function lstat($path) { \call_user_func($this->incrementor, 1); $promisor = new Deferred(); $priority = \EIO_PRI_DEFAULT; \eio_lstat($path, $priority, [$this, "onLstat"], $promisor); return $promisor->promise(); }