mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
vjudge: handle problem resync & fix uoj
This commit is contained in:
10 files changed
+34
-32
No files matched your search
@@ -325,7 +325,7 @@ class LocalStorageService {
|
||||
|
||||
async get(target: string, path?: string) {
|
||||
target = resolve(this.dir, convertPath(target));
|
||||
if (!existsSync(target)) throw new Error('File not found');
|
||||
if (!existsSync(target)) throw new Error(`File not found: ${target}`);
|
||||
if (path) await copyFile(target, path);
|
||||
return createReadStream(target);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user