diff options
Diffstat (limited to 'fs/ensure_file.ts')
-rw-r--r-- | fs/ensure_file.ts | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/fs/ensure_file.ts b/fs/ensure_file.ts index 6fe8e7822..d749b95e4 100644 --- a/fs/ensure_file.ts +++ b/fs/ensure_file.ts @@ -5,8 +5,10 @@ import { getFileInfoType } from "./utils.ts"; /** * Ensures that the file exists. - * If the file that is requested to be created is in directories that do not exist, - * these directories are created. If the file already exists, it is NOT MODIFIED. + * If the file that is requested to be created is in directories that do not + * exist. + * these directories are created. If the file already exists, + * it is NOTMODIFIED. */ export async function ensureFile(filePath: string): Promise<void> { let pathExists = false; @@ -33,8 +35,10 @@ export async function ensureFile(filePath: string): Promise<void> { /** * Ensures that the file exists. - * If the file that is requested to be created is in directories that do not exist, - * these directories are created. If the file already exists, it is NOT MODIFIED. + * If the file that is requested to be created is in directories that do not + * exist, + * these directories are created. If the file already exists, + * it is NOT MODIFIED. */ export function ensureFileSync(filePath: string): void { let pathExists = false; |