summaryrefslogtreecommitdiff
path: root/fs/ensure_file.ts
diff options
context:
space:
mode:
authorAxetroy <axetroy.dev@gmail.com>2019-06-19 12:22:01 +0800
committerRyan Dahl <ry@tinyclouds.org>2019-06-18 21:22:01 -0700
commitc85b1c06a9804ad41fbccf8fe5a5689f28eb049e (patch)
treee855fc7c02baaa219aa81a2a54a69b19c1fb3716 /fs/ensure_file.ts
parentd6e92582cc2267210f71e893b14672783301f87b (diff)
lint: add max line length rules (denoland/deno_std#507)
Original: https://github.com/denoland/deno_std/commit/b04fda30c8949b6347094b898bfa427c0b9a6162
Diffstat (limited to 'fs/ensure_file.ts')
-rw-r--r--fs/ensure_file.ts12
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;