diff options
| author | Ruben Beltran del Rio <git@r.bdr.sh> | 2024-02-14 17:15:11 +0100 |
|---|---|---|
| committer | Ruben Beltran del Rio <git@r.bdr.sh> | 2024-02-14 17:15:11 +0100 |
| commit | 10a76a5bf0a9d051aa9432566088034c5ced714b (patch) | |
| tree | fe2999541841f7f9c74839bb2835d4a050696890 /lib/utils.js | |
| parent | 6cd62e795e3716aa0cbd2d1ff8c1b3a345803563 (diff) | |
Lint
Diffstat (limited to 'lib/utils.js')
| -rw-r--r-- | lib/utils.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/utils.js b/lib/utils.js index 25d204a..cee3f47 100644 --- a/lib/utils.js +++ b/lib/utils.js @@ -3,7 +3,7 @@ import { kFileNotFoundError } from './constants.js'; // File system utilities -export async function rmIfExists(location) { +export const rmIfExists = async function rmIfExists(location) { try { await access(location, constants.F_OK); @@ -16,9 +16,9 @@ export async function rmIfExists(location) { throw error; } -} +}; -export async function ensureDirectoryExists(directory) { +export const ensureDirectoryExists = async function ensureDirectoryExists(directory) { try { await access(directory); @@ -31,4 +31,4 @@ export async function ensureDirectoryExists(directory) { throw error; } -} +}; |