mirror of
https://github.com/snipe/snipe-it.git
synced 2025-01-12 14:27:33 -08:00
mkdir not recursive (#2460)
* Fix path to snipeit-ssl.crt (#2428) * Modified 'recursive' part of the tuple to true
This commit is contained in:
parent
bcc6ca5180
commit
580091269d
|
@ -231,7 +231,7 @@ class AssetsController extends Controller
|
|||
$directory= public_path('uploads/assets/');
|
||||
// Check if the uploads directory exists. If not, try to create it.
|
||||
if (!file_exists($directory)) {
|
||||
mkdir($directory, 0755);
|
||||
mkdir($directory, 0755, true);
|
||||
}
|
||||
$path = public_path('uploads/assets/'.$file_name);
|
||||
try {
|
||||
|
@ -407,7 +407,7 @@ class AssetsController extends Controller
|
|||
$directory= public_path('uploads/assets/');
|
||||
// Check if the uploads directory exists. If not, try to create it.
|
||||
if (!file_exists($directory)) {
|
||||
mkdir($directory, 0755);
|
||||
mkdir($directory, 0755, true);
|
||||
}
|
||||
|
||||
$file_name = str_random(25).".".$extension;
|
||||
|
@ -840,7 +840,7 @@ class AssetsController extends Controller
|
|||
|
||||
// Check if the uploads directory exists. If not, try to create it.
|
||||
if (!file_exists($path)) {
|
||||
mkdir($path, 0755);
|
||||
mkdir($path, 0755, true);
|
||||
}
|
||||
if ($handle = opendir($path)) {
|
||||
|
||||
|
|
Loading…
Reference in a new issue