mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
judge: update etags file on delete (#1021)
This commit is contained in:
1 parent
af30431181
commit
9cf7d70f41
1 file changed
+3
-1
@@ -131,9 +131,11 @@ export class JudgeTask {
|
|||||||
files.filter((i) => filenames.includes(i.name))
|
files.filter((i) => filenames.includes(i.name))
|
||||||
.map((i) => [i.name, join(filePath, i.name)]),
|
.map((i) => [i.name, join(filePath, i.name)]),
|
||||||
));
|
));
|
||||||
await fs.writeFile(join(filePath, 'etags'), JSON.stringify(version));
|
|
||||||
this.compileCache = {};
|
this.compileCache = {};
|
||||||
}
|
}
|
||||||
|
if (allFilesToRemove.length || filenames.length) {
|
||||||
|
await fs.writeFile(join(filePath, 'etags'), JSON.stringify(version));
|
||||||
|
}
|
||||||
await fs.writeFile(join(filePath, 'lastUsage'), Date.now().toString());
|
await fs.writeFile(join(filePath, 'lastUsage'), Date.now().toString());
|
||||||
return filePath;
|
return filePath;
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
|
|||||||
Reference in new issue
Block a user