exists() public méthode

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.
Résultat boolean True if it exists, false otherwise.
Exemple #1
0
 /**
  */
 protected function _exists($keys)
 {
     $out = array();
     foreach ($keys as $key) {
         $out[$key] = $this->_vfs->exists($this->_params['vfspath'], $key);
     }
     return $out;
 }
Exemple #2
0
 /**
  */
 public function exists()
 {
     return $this->_vfs->exists($this->_vfspath, $this->_id);
 }