diff options
Diffstat (limited to 'fs/exists.ts')
-rw-r--r-- | fs/exists.ts | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/fs/exists.ts b/fs/exists.ts index 4638630fd..2c68ec6cf 100644 --- a/fs/exists.ts +++ b/fs/exists.ts @@ -1,13 +1,17 @@ // Copyright 2018-2019 the Deno authors. All rights reserved. MIT license. -/** Test whether or not the given path exists by checking with the file system */ +/** + * Test whether or not the given path exists by checking with the file system + */ export async function exists(filePath: string): Promise<boolean> { return Deno.lstat(filePath) .then((): boolean => true) .catch((): boolean => false); } -/** Test whether or not the given path exists by checking with the file system */ +/** + * Test whether or not the given path exists by checking with the file system + */ export function existsSync(filePath: string): boolean { try { Deno.lstatSync(filePath); |