Horde_Vfs_Base::exists PHP 메소드

exists() 공개 메소드

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.
리턴 boolean True if it exists, false otherwise.
    public function exists($path, $name)
    {
        try {
            $list = $this->listFolder($path);
            return isset($list[$name]);
        } catch (Horde_Vfs_Exception $e) {
            return false;
        }
    }

Usage Example

예제 #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;
 }
All Usage Examples Of Horde_Vfs_Base::exists