0
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-10-29 08:58:01 -04:00

docs(std): Fix spelling mistake on permission (#5476)

This commit is contained in:
domharrington 2020-05-16 02:36:11 -07:00 committed by GitHub
parent 76a6a1ff46
commit b34628a26a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -5,7 +5,7 @@ const { lstat, lstatSync, mkdir, mkdirSync } = Deno;
/**
* Ensures that the directory exists.
* If the directory structure does not exist, it is created. Like mkdir -p.
* Requires the `--allow-read` and `--alow-write` flag.
* Requires the `--allow-read` and `--allow-write` flag.
*/
export async function ensureDir(dir: string): Promise<void> {
try {
@ -28,7 +28,7 @@ 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.
* Requires the `--allow-read` and `--alow-write` flag.
* Requires the `--allow-read` and `--allow-write` flag.
*/
export function ensureDirSync(dir: string): void {
try {