GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||||
GeezerVison is showing github.com — vfs: normalize RealFSProvider mkdir return paths by trivikr · Pull Request #66221 · nodejs/node Conversation
Member
Fixes: #66220
Reuse the existing Assisted-by: opencode
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
|
There was an error while loading. Please reload this page.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@ ## main #66221 +/- ## ========================================== - Coverage 90.73% 90.71% -0.02% ========================================== Files 798 798 Lines 279993 280003 +10 Branches 53866 53858 -8 ========================================== - Hits 254047 254005 -42 - Misses 16229 16284 +55 + Partials 9717 9714 -3
🚀 New features to boost your workflow:
|
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
cc @mcollina Can you review this? |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
3b52939 to
43b6f0e
Compare
RealFSProvider.mkdirSync()/mkdir() forwarded the raw fs.mkdirSync()
result, which for { recursive: true } is the absolute backing-directory
path of the first created directory. VirtualFileSystem#toMountedPath()
then joined the mount point with it, producing <mount>/<root>/a instead
of <mount>/a, so the returned path failed fs.existsSync().
Reuse the existing #resolvedToVfsPath() helper (as realpath does) to
translate the result back to a provider-relative VFS path, matching
MemoryProvider.
Signed-off-by: Kamat, Trivikram <[email protected]>
Assisted-by: opencode
43b6f0e to
8195526
Compare
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
lgtm
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
|
Landed in d9e18d5 |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
RealFSProvider.mkdirSync()/mkdir() forwarded the raw fs.mkdirSync()
result, which for { recursive: true } is the absolute backing-directory
path of the first created directory. VirtualFileSystem#toMountedPath()
then joined the mount point with it, producing <mount>/<root>/a instead
of <mount>/a, so the returned path failed fs.existsSync().
Reuse the existing #resolvedToVfsPath() helper (as realpath does) to
translate the result back to a provider-relative VFS path, matching
MemoryProvider.
Signed-off-by: Kamat, Trivikram <[email protected]>
Assisted-by: opencode
PR-URL: #66221
Fixes: #66220
Reviewed-By: Matteo Collina <[email protected]>
Reviewed-By: James M Snell <[email protected]>
RealFSProvider.mkdirSync()/mkdir() forwarded the raw fs.mkdirSync()
result, which for { recursive: true } is the absolute backing-directory
path of the first created directory. VirtualFileSystem#toMountedPath()
then joined the mount point with it, producing <mount>/<root>/a instead
of <mount>/a, so the returned path failed fs.existsSync().
Reuse the existing #resolvedToVfsPath() helper (as realpath does) to
translate the result back to a provider-relative VFS path, matching
MemoryProvider.
Signed-off-by: Kamat, Trivikram <[email protected]>
Assisted-by: opencode
PR-URL: nodejs#66221
Fixes: nodejs#66220
Reviewed-By: Matteo Collina <[email protected]>
Reviewed-By: James M Snell <[email protected]>
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
vfs: recursive mkdir returns backing-directory path for RealFSProvider
There was an error while loading. Please reload this page.