-
-
Notifications
You must be signed in to change notification settings - Fork 16
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
feat(fs): support for copyFile
methods
#1066
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #1066 +/- ##
==========================================
+ Coverage 54.88% 55.15% +0.27%
==========================================
Files 327 329 +2
Lines 10469 10613 +144
Branches 1736 1775 +39
==========================================
+ Hits 5746 5854 +108
- Misses 4141 4158 +17
- Partials 582 601 +19
Flags with carried forward coverage won't be shown. Click here to find out more.
... and 1 file with indirect coverage changes Continue to review full report in Codecov by Sentry.
|
checkFileForRead(path) | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this should eliminate a few syscalls which are HOL blocking and shouldn't be here anyway; if a file is not readable or does not exist, we should surface an exception and fail.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great, a couple more tests and it should be good
329b2f9
to
9e6ed10
Compare
e4410bb
to
0e96019
Compare
- feat: implement `copyFile` methods in `fs` and `fs/promises` - feat: initial `GuestExecutor` support - feat: guest executor infra - test: add tests for `copyFile` methods - fix: reduce requisite syscalls for file reads - fix: encoding parameter should default to utf8 for `readFile` - fix: bugfixes for behavior in callback behavior for `fs` - fix: support for UTF-32 in `fs` module - fix: js error handling in `fs` module - fix: dependency base for gvm tests with executor - chore: update `runtime` module with new facade exports - chore: unwire direct executor from `fs` - chore: update `graalvm` module pin - chore: wire in guest executors Signed-off-by: Sam Gammon <[email protected]>
0e96019
to
6f1868a
Compare
Summary
Adds initial support for
copyFile
methods innode:fs
andnode:fs/promises
.