Exemplo n.º 1
0
 /**
  * {@inheritdoc}
  */
 public function lstat($path)
 {
     $this->incrementPending();
     $promisor = new Deferred();
     $priority = \EIO_PRI_DEFAULT;
     \eio_lstat($path, $priority, [$this, "onStat"], $promisor);
     return $promisor->promise();
 }
Exemplo n.º 2
0
 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);
 }
Exemplo n.º 3
0
 /**
  * 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);
 }
Exemplo n.º 4
0
 /**
  * {@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();
 }