Merge pull request #7325 from owncloud/recursive-mkdir-local

Recursive mkdir fixes #7047
This commit is contained in:
Thomas Müller 2014-03-25 22:45:14 +01:00
commit ed97d872af
2 changed files with 2 additions and 2 deletions

View File

@ -35,7 +35,7 @@ if (\OC_Util::runningOnWindows()) {
}
public function mkdir($path) {
return @mkdir($this->datadir . $path);
return @mkdir($this->datadir . $path, 0777, true);
}
public function rmdir($path) {

View File

@ -31,7 +31,7 @@ class MappedLocal extends \OC\Files\Storage\Common{
return 'local::'.$this->datadir;
}
public function mkdir($path) {
return @mkdir($this->buildPath($path));
return @mkdir($this->buildPath($path), 0777, true);
}
public function rmdir($path) {
try {