mirror of
https://github.com/denoland/deno.git
synced 2024-11-22 15:06:54 -05:00
Fix spelling: "--alow-write" => "--allow-write" (#5486)
This commit is contained in:
parent
6405675448
commit
6257684da6
4 changed files with 7 additions and 7 deletions
|
@ -22,4 +22,4 @@ Documentation for this crate is thin at the moment. Please see
|
|||
as a simple example of usage.
|
||||
|
||||
TypeScript support and a lot of other functionality is not available at this
|
||||
layer. See the [cli](https://github.com/denoland/deno/tree/master/cli) for that.
|
||||
layer. See the [CLI](https://github.com/denoland/deno/tree/master/cli) for that.
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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 {
|
||||
|
|
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue