deno.land / x / esm@v135_2 / server / embed / polyfills / node_fs.js
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381// https://nodejs.org/api/fs.html
function panic() { throw new Error( `[esm.sh] "node:fs" is not supported in browser environment.`, );}
export let F_OK = null;export let R_OK = null;export let W_OK = null;export let X_OK = null;
export function access() { panic();}
export function accessSync() { panic();}
export function appendFile() { panic();}
export function appendFileSync() { panic();}
export function chmod() { panic();}
export function chmodSync() { panic();}
export function chown() { panic();}
export function chownSync() { panic();}
export function close() { panic();}
export function closeSync() { panic();}
export let constants = new Proxy({}, { get: () => null });export function copyFile() { panic();}
export function copyFileSync() { panic();}
export function createReadStream() { panic();}
export function createWriteStream() { panic();}
export function Dir() { panic();}
export function Dirent() { panic();}
export function exists() { panic();}
export function existsSync() { panic();}
export function fdatasync() { panic();}
export function fdatasyncSync() { panic();}
export function fstat() { panic();}
export function fstatSync() { panic();}
export function fsync() { panic();}
export function fsyncSync() { panic();}
export function ftruncate() { panic();}
export function ftruncateSync() { panic();}
export function futimes() { panic();}
export function futimesSync() { panic();}
export function link() { panic();}
export function linkSync() { panic();}
export function lstat() { panic();}
export function lstatSync() { panic();}
export function mkdir() { panic();}
export function mkdirSync() { panic();}
export function mkdtemp() { panic();}
export function mkdtempSync() { panic();}
export function open() { panic();}
export function openSync() { panic();}
export function read() { panic();}
export function readSync() { panic();}
export let promises = new Proxy({}, { get: (_t, prop) => _e(`promises/${prop}`),});export function readdir() { panic();}
export function readdirSync() { panic();}
export function readFile() { panic();}
export function readFileSync() { panic();}
export function readlink() { panic();}
export function readlinkSync() { panic();}
export function realpath() { panic();}
export function realpathSync() { panic();}
export function rename() { panic();}
export function renameSync() { panic();}
export function rmdir() { panic();}
export function rmdirSync() { panic();}
export function rm() { panic();}
export function rmSync() { panic();}
export function stat() { panic();}
export function Stats() { panic();}
export function statSync() { panic();}
export function symlink() { panic();}
export function symlinkSync() { panic();}
export function truncate() { panic();}
export function truncateSync() { panic();}
export function unlink() { panic();}
export function unlinkSync() { panic();}
export function utimes() { panic();}
export function utimesSync() { panic();}
export function watch() { panic();}
export function watchFile() { panic();}
export function write() { panic();}
export function writeSync() { panic();}
export function writeFile() { panic();}
export function writeFileSync() { panic();}
export default { access, accessSync, appendFile, appendFileSync, chmod, chmodSync, chown, chownSync, close, closeSync, constants, copyFile, copyFileSync, createReadStream, createWriteStream, Dir, Dirent, exists, existsSync, F_OK, fdatasync, fdatasyncSync, fstat, fstatSync, fsync, fsyncSync, ftruncate, ftruncateSync, futimes, futimesSync, link, linkSync, lstat, lstatSync, mkdir, mkdirSync, mkdtemp, mkdtempSync, open, openSync, promises, R_OK, read, readdir, readdirSync, readFile, readFileSync, readlink, readlinkSync, readSync, realpath, realpathSync, rename, renameSync, rm, rmdir, rmdirSync, rmSync, stat, Stats, statSync, symlink, symlinkSync, truncate, truncateSync, unlink, unlinkSync, utimes, utimesSync, W_OK, watch, watchFile, write, writeFile, writeFileSync, writeSync, X_OK,};
Version Info