diff options
author | Axetroy <axetroy.dev@gmail.com> | 2019-06-19 12:22:01 +0800 |
---|---|---|
committer | Ryan Dahl <ry@tinyclouds.org> | 2019-06-18 21:22:01 -0700 |
commit | c85b1c06a9804ad41fbccf8fe5a5689f28eb049e (patch) | |
tree | e855fc7c02baaa219aa81a2a54a69b19c1fb3716 /fs/exists.ts | |
parent | d6e92582cc2267210f71e893b14672783301f87b (diff) |
lint: add max line length rules (denoland/deno_std#507)
Original: https://github.com/denoland/deno_std/commit/b04fda30c8949b6347094b898bfa427c0b9a6162
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); |