diff options
Diffstat (limited to 'std/fs')
-rw-r--r-- | std/fs/copy.ts | 4 | ||||
-rw-r--r-- | std/fs/empty_dir.ts | 4 | ||||
-rw-r--r-- | std/fs/ensure_file.ts | 4 |
3 files changed, 6 insertions, 6 deletions
diff --git a/std/fs/copy.ts b/std/fs/copy.ts index 85558d905..8ebec3ae1 100644 --- a/std/fs/copy.ts +++ b/std/fs/copy.ts @@ -201,7 +201,7 @@ function copyDirSync(src: string, dest: string, options: CopyOptions): void { /** * Copy a file or directory. The directory can have contents. Like `cp -r`. - * Requires the `--allow-read` and `--alow-write` flag. + * Requires the `--allow-read` and `--allow-write` flag. * @param src the file/directory path. * Note that if `src` is a directory it will copy everything inside * of this directory, not the entire directory itself @@ -240,7 +240,7 @@ export async function copy( /** * Copy a file or directory. The directory can have contents. Like `cp -r`. - * Requires the `--allow-read` and `--alow-write` flag. + * Requires the `--allow-read` and `--allow-write` flag. * @param src the file/directory path. * Note that if `src` is a directory it will copy everything inside * of this directory, not the entire directory itself diff --git a/std/fs/empty_dir.ts b/std/fs/empty_dir.ts index 8c3083cee..de52890a3 100644 --- a/std/fs/empty_dir.ts +++ b/std/fs/empty_dir.ts @@ -6,7 +6,7 @@ const { readDir, readDirSync, mkdir, mkdirSync, remove, removeSync } = Deno; * Deletes directory contents if the directory is not empty. * If the directory does not exist, it is created. * The directory itself is not deleted. - * Requires the `--allow-read` and `--alow-write` flag. + * Requires the `--allow-read` and `--allow-write` flag. */ export async function emptyDir(dir: string): Promise<void> { try { @@ -37,7 +37,7 @@ export async function emptyDir(dir: string): Promise<void> { * Deletes directory contents if the directory is not empty. * If the directory does not exist, it is created. * The directory itself is not deleted. - * Requires the `--allow-read` and `--alow-write` flag. + * Requires the `--allow-read` and `--allow-write` flag. */ export function emptyDirSync(dir: string): void { try { diff --git a/std/fs/ensure_file.ts b/std/fs/ensure_file.ts index 2539c71ac..a1476b657 100644 --- a/std/fs/ensure_file.ts +++ b/std/fs/ensure_file.ts @@ -10,7 +10,7 @@ const { lstat, lstatSync, writeFile, writeFileSync } = Deno; * exist. * these directories are created. If the file already exists, * it is NOTMODIFIED. - * Requires the `--allow-read` and `--alow-write` flag. + * Requires the `--allow-read` and `--allow-write` flag. */ export async function ensureFile(filePath: string): Promise<void> { try { @@ -41,7 +41,7 @@ export async function ensureFile(filePath: string): Promise<void> { * exist, * these directories are created. If the file already exists, * it is NOT MODIFIED. - * Requires the `--allow-read` and `--alow-write` flag. + * Requires the `--allow-read` and `--allow-write` flag. */ export function ensureFileSync(filePath: string): void { try { |