修复任务跳转脚本未显示文件大小,订阅删除未删除 repo 目录

This commit is contained in:
whyour
2024-09-08 21:08:15 +08:00
parent 69fcf45231
commit ff98c3a499
3 changed files with 6 additions and 1 deletions
+2
View File
@@ -31,6 +31,7 @@ const tmpPath = path.join(rootPath, '.tmp/');
const samplePath = path.join(rootPath, 'sample/');
const configPath = path.join(dataPath, 'config/');
const scriptPath = path.join(dataPath, 'scripts/');
const repoPath = path.join(dataPath, 'repo/');
const bakPath = path.join(dataPath, 'bak/');
const logPath = path.join(dataPath, 'log/');
const dbPath = path.join(dataPath, 'db/');
@@ -101,6 +102,7 @@ export default {
uploadPath,
configPath,
scriptPath,
repoPath,
samplePath,
blackFileList: [
'auth.json',
+2
View File
@@ -277,7 +277,9 @@ export default class SubscriptionService {
}
for (const doc of docs) {
const filePath = join(config.scriptPath, doc.alias);
const repoPath = join(config.repoPath, doc.alias);
await rmPath(filePath);
await rmPath(repoPath);
}
}
}