Open
Description
We aim to make @std/fs
cross-runtime (ref #4313). To achieve that we need to port FS APIs from Deno namespace (with Node.js compatibility)
- Deno FS APIs https://docs.deno.com/api/deno/file-system
- deno-shim https://github.com/denoland/node_shims/tree/main/packages/shim-deno/src/deno/stable/functions
Classes
Functions
- chmod feat(fs/unstable): add chmod and chmodSync #6343
- chmodSync feat(fs/unstable): add chmod and chmodSync #6343
- chown feat(fs/unstable): add chown and chownSync #6552
- chownSync feat(fs/unstable): add chown and chownSync #6552
- copyFile feat(fs/unstable): add
copyFile
andcopyFileSync
#6425 - copyFileSync feat(fs/unstable): add
copyFile
andcopyFileSync
#6425 - create feat(fs/unstable): add create and createSync #6600
- createSync feat(fs/unstable): add create and createSync #6600
- link feat(fs/unstable): add link and linkSync #6369
- linkSync feat(fs/unstable): add link and linkSync #6369
- lstat feat(fs/unstable): add
fs.lstat
#6276 - lstatSync feat(fs/unstable): add statSync and lstatSync #6300
- makeTempDir feat(fs/unstable): add makeTempDir and makeTempDirSync #6391
- makeTempDirSync feat(fs/unstable): add makeTempDir and makeTempDirSync #6391
- makeTempFile feat(fs/unstable): add makeTempFile and makeTempFileSync #6469
- makeTempFileSync feat(fs/unstable): add makeTempFile and makeTempFileSync #6469
- mkdir feat(fs/unstable): add mkdir and mkdirSync #6436
- mkdirSync feat(fs/unstable): add mkdir and mkdirSync #6436
- open feat(fs/unstable): add open, openSync, and FsFile class #6524
- openSync feat(fs/unstable): add open, openSync, and FsFile class #6524
- readDir feat(fs/unstable): add readDir #6338
- readDirSync feat(fs/unstable): add readDirSync #6381
- readFile feat(fs/unstable): add readFile and readFileSync #6394
- readFileSync feat(fs/unstable): add readFile and readFileSync #6394
- readLink feat(fs/unstable): add readLink and readLinkSync #6373
- readLinkSync feat(fs/unstable): add readLink and readLinkSync #6373
- readTextFile feat(fs/unstable): add readTextFileSync and readTextFile #6405
- readTextFileSync feat(fs/unstable): add readTextFileSync and readTextFile #6405
- realPath feat(fs/unstable): add realPath and realPathSync #6366
- realPathSync feat(fs/unstable): add realPath and realPathSync #6366
- remove feat(fs/unstable): add
remove
andremoveSync
api. #6438 - removeSync feat(fs/unstable): add
remove
andremoveSync
api. #6438 - rename feat(fs/unstable): add rename #6379
- renameSync feat(fs/unstable): add renameSync #6396
- stat feat(fs/unstable): add
fs.stat
#6258 - statSync feat(fs/unstable): add statSync and lstatSync #6300
- symlink feat(fs/unstable): add symlink and symlinkSync #6352
- symlinkSync feat(fs/unstable): add symlink and symlinkSync #6352
- truncate feat(fs/unstable): add truncate and truncateSync #6416
- truncateSync feat(fs/unstable): add truncate and truncateSync #6416
- umask feat(fs/unstable): add umask #6454
- utime feat(fs/unstable): add utime and utimeSync #6446
- utimeSync feat(fs/unstable): add utime and utimeSync #6446
- watchFs
- writeFile feat(fs/unstable): add writeFile and writeFileSync #6444
- writeFileSync feat(fs/unstable): add writeFile and writeFileSync #6444
- writeTextFile feat(fs/unstable): add writeTextFile and writeTextFileSync #6463
- writeTextFileSync feat(fs/unstable): add writeTextFile and writeTextFileSync #6463
shim-deno
package already implements Node.js compatible Deno APIs. We can borrow the code from there for the Node.js compatibility part https://github.com/denoland/node_shims/tree/main/packages/shim-deno