|
@@ -62,8 +62,9 @@ class DiskService extends CrudService {
|
|
const curPath = path.resolve(filePath, file);
|
|
const curPath = path.resolve(filePath, file);
|
|
const fi = fs.statSync(curPath);
|
|
const fi = fs.statSync(curPath);
|
|
if (fi.isDirectory()) {
|
|
if (fi.isDirectory()) {
|
|
|
|
+ throw new BusinessError(ErrorCode.SERVICE_FAULT, '内部有文件/目录,请先清空该目录');
|
|
// recurse
|
|
// recurse
|
|
- this.dirDelete(curPath);
|
|
|
|
|
|
+ // this.dirDelete(curPath);
|
|
} else {
|
|
} else {
|
|
// delete file
|
|
// delete file
|
|
if (_.get(times, 'start_time') && _.get(times, 'end_time')) {
|
|
if (_.get(times, 'start_time') && _.get(times, 'end_time')) {
|