Updated mkdir call to allow for creation of nested directories
This commit is contained in:
parent
d6476fffcd
commit
f724d86b6a
|
@ -149,7 +149,7 @@ class Rest_ShowController extends Zend_Rest_Controller
|
||||||
|
|
||||||
// check if "organize" dir exists and if not create one
|
// check if "organize" dir exists and if not create one
|
||||||
if (!file_exists($importedStorageDirectory)) {
|
if (!file_exists($importedStorageDirectory)) {
|
||||||
if (!mkdir($importedStorageDirectory, 0777)) {
|
if (!mkdir($importedStorageDirectory, 0777, true)) {
|
||||||
throw new Exception("Failed to create storage directory.");
|
throw new Exception("Failed to create storage directory.");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue