exists() public method

Returns if a given file or folder exists in a folder.
public exists ( string $path, string $name ) : boolean
$path string The path to the folder.
$name string The file or folder name.
return boolean True if it exists, false otherwise.
示例#1
0
文件: Vfs.php 项目: jubinpatel/horde
 /**
  */
 protected function _exists($keys)
 {
     $out = array();
     foreach ($keys as $key) {
         $out[$key] = $this->_vfs->exists($this->_params['vfspath'], $key);
     }
     return $out;
 }
示例#2
0
文件: Vfs.php 项目: DSNS-LAB/Dmail
 /**
  */
 public function exists()
 {
     return $this->_vfs->exists($this->_vfspath, $this->_id);
 }