改名
This commit is contained in:
+1
-4
@@ -160,13 +160,10 @@ if (!function_exists('storage')) {
|
|||||||
if (empty($path)) {
|
if (empty($path)) {
|
||||||
$fileName = rtrim($basePath, '/') . '/' . $fileName;
|
$fileName = rtrim($basePath, '/') . '/' . $fileName;
|
||||||
} else if (empty($fileName)) {
|
} else if (empty($fileName)) {
|
||||||
$fileName = rtrim(initDir($basePath, $path));
|
return rtrim(initDir($basePath, $path));
|
||||||
} else {
|
} else {
|
||||||
$fileName = rtrim(initDir($basePath, $path)) . '/' . $fileName;
|
$fileName = rtrim(initDir($basePath, $path)) . '/' . $fileName;
|
||||||
}
|
}
|
||||||
if (empty($fileName)) {
|
|
||||||
return $path;
|
|
||||||
}
|
|
||||||
if (!file_exists($fileName)) {
|
if (!file_exists($fileName)) {
|
||||||
touch($fileName);
|
touch($fileName);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user