コード例 #1
0
ファイル: Share.php プロジェクト: ZverAleksey/core
 /**
  * List the content of a remote folder
  *
  * @param $path
  * @return \Icewind\SMB\IFileInfo[]
  *
  * @throws \Icewind\SMB\Exception\NotFoundException
  * @throws \Icewind\SMB\Exception\InvalidTypeException
  */
 public function dir($path)
 {
     $escapedPath = $this->escapePath($path);
     $output = $this->execute('cd ' . $escapedPath);
     //check output for errors
     $this->parseOutput($output, $path);
     $output = $this->execute('dir');
     $this->execute('cd /');
     return $this->parser->parseDir($output, $path);
 }