-
Notifications
You must be signed in to change notification settings - Fork 640
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Port File System APIs in Deno namespace to @std/fs
#6255
Comments
Are |
It looks like Deno doesn't have |
Considering compatibility with Node, should |
Do you suggest |
Yes, except for compatibility, |
Looked at the docs again, (Deno's) BTW Node.js also has |
TLDR: As a general question, should there be stronger checking of arguments when using the new For example, the Similarly, the Node.js versions of I can either share a proposed approach for error checking here or in a forthcoming PR, whichever you prefer. I'd also be curious to know what your thoughts are about adding |
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)Classes
Functions
copyFile
andcopyFileSync
#6425copyFile
andcopyFileSync
#6425fs.lstat
#6276remove
andremoveSync
api. #6438remove
andremoveSync
api. #6438fs.stat
#6258shim-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-denoThe text was updated successfully, but these errors were encountered: