mirror of
https://github.com/snipe/snipe-it.git
synced 2025-03-05 20:52:15 -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/');
|
$directory= public_path('uploads/assets/');
|
||||||
// Check if the uploads directory exists. If not, try to create it.
|
// Check if the uploads directory exists. If not, try to create it.
|
||||||
if (!file_exists($directory)) {
|
if (!file_exists($directory)) {
|
||||||
mkdir($directory, 0755);
|
mkdir($directory, 0755, true);
|
||||||
}
|
}
|
||||||
$path = public_path('uploads/assets/'.$file_name);
|
$path = public_path('uploads/assets/'.$file_name);
|
||||||
try {
|
try {
|
||||||
|
@ -407,7 +407,7 @@ class AssetsController extends Controller
|
||||||
$directory= public_path('uploads/assets/');
|
$directory= public_path('uploads/assets/');
|
||||||
// Check if the uploads directory exists. If not, try to create it.
|
// Check if the uploads directory exists. If not, try to create it.
|
||||||
if (!file_exists($directory)) {
|
if (!file_exists($directory)) {
|
||||||
mkdir($directory, 0755);
|
mkdir($directory, 0755, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
$file_name = str_random(25).".".$extension;
|
$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.
|
// Check if the uploads directory exists. If not, try to create it.
|
||||||
if (!file_exists($path)) {
|
if (!file_exists($path)) {
|
||||||
mkdir($path, 0755);
|
mkdir($path, 0755, true);
|
||||||
}
|
}
|
||||||
if ($handle = opendir($path)) {
|
if ($handle = opendir($path)) {
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue