summaryrefslogtreecommitdiff
path: root/std/node/_fs/_fs_common.ts
diff options
context:
space:
mode:
authorBartek IwaƄczuk <biwanczuk@gmail.com>2020-09-13 14:15:38 +0200
committerGitHub <noreply@github.com>2020-09-13 14:15:38 +0200
commitb216d48e5f179260fea247d4a1b9fce76f240e7d (patch)
tree66fb54d1e573f84d4dec92af8c465e60a998902e /std/node/_fs/_fs_common.ts
parentbf70442b08eb54b2959b32977aa0a245c530248b (diff)
upgrade: deno_doc, deno_lint, dprint, swc (#7434)
upgrades: - swc_ecmascript 0.7.7 - dprint-plugin-typescript 0.31.3 - deno_lint 0.2.0 - deno_doc 0.1.9 Split std_lint test into std_lint and unit_test_lint. Added lint ignores to CommonJS files in std/node.
Diffstat (limited to 'std/node/_fs/_fs_common.ts')
-rw-r--r--std/node/_fs/_fs_common.ts3
1 files changed, 3 insertions, 0 deletions
diff --git a/std/node/_fs/_fs_common.ts b/std/node/_fs/_fs_common.ts
index 5d3f02a5d..ec0c2caef 100644
--- a/std/node/_fs/_fs_common.ts
+++ b/std/node/_fs/_fs_common.ts
@@ -150,14 +150,17 @@ export function getOpenOptions(flag: string | undefined): Deno.OpenOptions {
case "as": {
// 'as': Open file for appending in synchronous mode. The file is created if it does not exist.
openOptions = { create: true, append: true };
+ break;
}
case "as+": {
// 'as+': Open file for reading and appending in synchronous mode. The file is created if it does not exist.
openOptions = { create: true, read: true, append: true };
+ break;
}
case "rs+": {
// 'rs+': Open file for reading and writing in synchronous mode. Instructs the operating system to bypass the local file system cache.
openOptions = { create: true, read: true, write: true };
+ break;
}
default: {
throw new Error(`Unrecognized file system flag: ${flag}`);