2021-01-10 21:59:07 -05:00
|
|
|
// Copyright 2018-2021 the Deno authors. All rights reserved. MIT license.
|
2020-07-08 19:26:39 +10:00
|
|
|
import type { CallbackWithError } from "./_fs_common.ts";
|
2020-03-15 15:48:46 +00:00
|
|
|
import { notImplemented } from "../_utils.ts";
|
|
|
|
|
|
|
|
/** Revist once https://github.com/denoland/deno/issues/4017 lands */
|
|
|
|
|
2020-05-03 23:44:38 +04:30
|
|
|
//TODO - 'path' can also be a Buffer. Neither of these polyfills
|
2020-03-15 15:48:46 +00:00
|
|
|
//is available yet. See https://github.com/denoland/deno/issues/3403
|
|
|
|
export function access(
|
2020-08-25 09:43:54 +10:00
|
|
|
_path: string | URL,
|
|
|
|
_modeOrCallback: number | ((...args: unknown[]) => void),
|
|
|
|
_callback?: CallbackWithError,
|
2020-03-15 15:48:46 +00:00
|
|
|
): void {
|
|
|
|
notImplemented("Not yet available");
|
|
|
|
}
|
|
|
|
|
2020-05-03 23:44:38 +04:30
|
|
|
//TODO - 'path' can also be a Buffer. Neither of these polyfills
|
2020-03-15 15:48:46 +00:00
|
|
|
//is available yet. See https://github.com/denoland/deno/issues/3403
|
|
|
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
2020-05-03 23:44:38 +04:30
|
|
|
export function accessSync(path: string | URL, mode?: number): void {
|
2020-03-15 15:48:46 +00:00
|
|
|
notImplemented("Not yet available");
|
|
|
|
}
|