diff options
Diffstat (limited to 'fs/ensure_dir.ts')
| -rw-r--r-- | fs/ensure_dir.ts | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/fs/ensure_dir.ts b/fs/ensure_dir.ts index 5a5cc0a01..e7e4f69a2 100644 --- a/fs/ensure_dir.ts +++ b/fs/ensure_dir.ts @@ -1,9 +1,8 @@ // Copyright 2018-2019 the Deno authors. All rights reserved. MIT license. + /** - * Ensures that the directory exists. If the directory structure does not exist, it is created. Like mkdir -p. - * @export - * @param {string} dir - * @returns {Promise<void>} + * Ensures that the directory exists. + * If the directory structure does not exist, it is created. Like mkdir -p. */ export async function ensureDir(dir: string): Promise<void> { try { @@ -16,10 +15,8 @@ export async function ensureDir(dir: string): Promise<void> { } /** - * Ensures that the directory exists. If the directory structure does not exist, it is created. Like mkdir -p. - * @export - * @param {string} dir - * @returns {void} + * Ensures that the directory exists. + * If the directory structure does not exist, it is created. Like mkdir -p. */ export function ensureDirSync(dir: string): void { try { |
