From a40df9636758a7d26c3e699fc971a24b22e623f9 Mon Sep 17 00:00:00 2001 From: warpdesign Date: Mon, 14 Nov 2022 12:05:38 +0100 Subject: [PATCH] FsLocal.access: use async promises.access instead of incorrect fs.statSync --- src/services/plugins/FsLocal.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/services/plugins/FsLocal.ts b/src/services/plugins/FsLocal.ts index 31c51300..d44f50ff 100644 --- a/src/services/plugins/FsLocal.ts +++ b/src/services/plugins/FsLocal.ts @@ -191,7 +191,7 @@ export class LocalApi implements FsApi { async exists(path: string, transferId = -1): Promise { try { - fs.statSync(path) + await fs.promises.access(path) return true } catch (err) { if (err.code === 'ENOENT') {