diff options
Diffstat (limited to 'std/node/fs.ts')
-rwxr-xr-x | std/node/fs.ts | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/std/node/fs.ts b/std/node/fs.ts index eb6830acb..6ef69cb69 100755 --- a/std/node/fs.ts +++ b/std/node/fs.ts @@ -1,8 +1,13 @@ +// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license. import { notImplemented, intoCallbackAPIWithIntercept, MaybeEmpty } from "./_utils.ts"; + +import { appendFile, appendFileSync } from "./_fs/_fs_appendFile.ts"; +export { appendFile, appendFileSync }; + const { readFile: denoReadFile, readFileSync: denoReadFileSync, @@ -128,3 +133,18 @@ export function readlinkSync( ): string | Uint8Array { return maybeEncode(denoReadlinkSync(path), getEncoding(opt)); } + +/** Revist once https://github.com/denoland/deno/issues/4017 lands */ +export function access( + path: string, // eslint-disable-line @typescript-eslint/no-unused-vars + modeOrCallback: number | Function, // eslint-disable-line @typescript-eslint/no-unused-vars + callback?: Function // eslint-disable-line @typescript-eslint/no-unused-vars +): void { + notImplemented("Not yet available"); +} + +/** Revist once https://github.com/denoland/deno/issues/4017 lands */ +// eslint-disable-next-line @typescript-eslint/no-unused-vars +export function accessSync(path: string, mode?: number): undefined { + notImplemented("Not yet available"); +} |