fkooman\RemoteStorage\Path::getIsFolder PHP Method

getIsFolder() public method

public getIsFolder ( )
    public function getIsFolder()
    {
        return empty($this->pathParts[count($this->pathParts) - 1]);
    }

Usage Example

 public function updateFolder(Path $p)
 {
     if (!$p->getIsFolder()) {
         throw new MetadataStorageException('not a folder');
     }
     return $this->updateDocument($p, null);
 }
All Usage Examples Of fkooman\RemoteStorage\Path::getIsFolder