From 8b6fa51188f134358d973c86d1fbdc0ec1121b1e Mon Sep 17 00:00:00 2001 From: Fhilipe Coelho Date: Sun, 14 Apr 2024 23:13:20 -0300 Subject: [PATCH] chore: delete validade-path.ts --- src/main/events/helpers/validate-path.ts | 10 ---------- 1 file changed, 10 deletions(-) delete mode 100644 src/main/events/helpers/validate-path.ts diff --git a/src/main/events/helpers/validate-path.ts b/src/main/events/helpers/validate-path.ts deleted file mode 100644 index 37f4c56bc..000000000 --- a/src/main/events/helpers/validate-path.ts +++ /dev/null @@ -1,10 +0,0 @@ -import fs from "fs"; - -export default function validatePath(path: string): Error | undefined { - try { - fs.accessSync(path, fs.constants.W_OK); - return; - } catch (error) { - return error as Error; - } -}