Skip to content

Commit

Permalink
Fixed phpdoc in swift
Browse files Browse the repository at this point in the history
  • Loading branch information
Vincent Petry committed Jul 1, 2015
1 parent 8fc4121 commit 101312b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions apps/files_external/lib/swift.php
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,11 @@ private function fetchObject($path) {
}

/**
* Returns whether the given path exists.
*
* @param string $path
*
* @return bool true if the object exist, false otherwise
*/
private function doesObjectExist($path) {
return $this->fetchObject($path) !== false;
Expand Down Expand Up @@ -181,6 +185,8 @@ public function mkdir($path) {
$metadataHeaders = DataObject::stockHeaders(array());
$allHeaders = $customHeaders + $metadataHeaders;
$this->getContainer()->uploadObject($path, '', $allHeaders);
// invalidate so that the next access gets the real object
// with all properties
$this->objectCache->remove($path);
} catch (Exceptions\CreateUpdateError $e) {
\OCP\Util::writeLog('files_external', $e->getMessage(), \OCP\Util::ERROR);
Expand Down

0 comments on commit 101312b

Please sign in to comment.