diff options
Diffstat (limited to 'std/fs/ensure_dir.ts')
-rw-r--r-- | std/fs/ensure_dir.ts | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/std/fs/ensure_dir.ts b/std/fs/ensure_dir.ts index 961476028..f5b5cd309 100644 --- a/std/fs/ensure_dir.ts +++ b/std/fs/ensure_dir.ts @@ -11,7 +11,9 @@ export async function ensureDir(dir: string): Promise<void> { const fileInfo = await Deno.lstat(dir); if (!fileInfo.isDirectory) { throw new Error( - `Ensure path exists, expected 'dir', got '${getFileInfoType(fileInfo)}'` + `Ensure path exists, expected 'dir', got '${ + getFileInfoType(fileInfo) + }'`, ); } } catch (err) { @@ -34,7 +36,9 @@ export function ensureDirSync(dir: string): void { const fileInfo = Deno.lstatSync(dir); if (!fileInfo.isDirectory) { throw new Error( - `Ensure path exists, expected 'dir', got '${getFileInfoType(fileInfo)}'` + `Ensure path exists, expected 'dir', got '${ + getFileInfoType(fileInfo) + }'`, ); } } catch (err) { |