delete directories

This commit is contained in:
Edward Yang 2022-07-13 11:15:39 +08:00
parent 95c9e48c0f
commit ef21b0fd11
1 changed files with 9 additions and 0 deletions

View File

@ -85,6 +85,8 @@ class FileManagerService
/**
* 批量删除文件或文件夹
*
* @param $filePath
* @throws \Exception
*/
@ -103,6 +105,13 @@ class FileManagerService
}
/**
* 修改文件夹或者文件名称
*
* @param $originPath
* @param $newPath
* @throws \Exception
*/
public function updateName($originPath, $newPath)
{
$originPath = public_path("catalog/{$originPath}");