summaryrefslogtreecommitdiff
path: root/fs/exists.ts
diff options
context:
space:
mode:
Diffstat (limited to 'fs/exists.ts')
-rw-r--r--fs/exists.ts15
1 files changed, 3 insertions, 12 deletions
diff --git a/fs/exists.ts b/fs/exists.ts
index aa961037d..41961a0f2 100644
--- a/fs/exists.ts
+++ b/fs/exists.ts
@@ -1,22 +1,13 @@
// 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
- * @export
- * @param {string} filePath
- * @returns {Promise<boolean>}
- */
+
+/** Test whether or not the given path exists by checking with the file system */
export async function exists(filePath: string): Promise<boolean> {
return Deno.stat(filePath)
.then(() => true)
.catch(() => false);
}
-/**
- * Test whether or not the given path exists by checking with the file system
- * @export
- * @param {string} filePath
- * @returns {boolean}
- */
+/** Test whether or not the given path exists by checking with the file system */
export function existsSync(filePath: string): boolean {
try {
Deno.statSync(filePath);