diff options
author | Thomas Müller <thomas.mueller@tmit.eu> | 2014-03-25 22:45:14 +0100 |
---|---|---|
committer | Thomas Müller <thomas.mueller@tmit.eu> | 2014-03-25 22:45:14 +0100 |
commit | ed97d872af3734b8f4d273a8f6aa0c6693d22434 (patch) | |
tree | 700d33fe3719d544899253037d9d8301adb7d8a5 | |
parent | 1ae10b9da3280b9bb6fc3965d1ace43f1c0be56f (diff) | |
parent | f86dffd56c0971372900d1f4a9fba879e69952e7 (diff) | |
download | nextcloud-server-ed97d872af3734b8f4d273a8f6aa0c6693d22434.tar.gz nextcloud-server-ed97d872af3734b8f4d273a8f6aa0c6693d22434.zip |
Merge pull request #7325 from owncloud/recursive-mkdir-local
Recursive mkdir fixes #7047
-rw-r--r-- | lib/private/files/storage/local.php | 2 | ||||
-rw-r--r-- | lib/private/files/storage/mappedlocal.php | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/private/files/storage/local.php b/lib/private/files/storage/local.php index a62230bdba5..0f906ec55b4 100644 --- a/lib/private/files/storage/local.php +++ b/lib/private/files/storage/local.php @@ -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) { diff --git a/lib/private/files/storage/mappedlocal.php b/lib/private/files/storage/mappedlocal.php index 1bab3489a28..026f6ec895e 100644 --- a/lib/private/files/storage/mappedlocal.php +++ b/lib/private/files/storage/mappedlocal.php @@ -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 { |