-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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
Ensure parent node is always updated in rename(), regardless of fs implementation #21964
Ensure parent node is always updated in rename(), regardless of fs implementation #21964
Commits on May 20, 2024
-
Ensure parent directory is updated in rename()
Add a fallback update to the parent directory reference in the finally block of the rename function to ensure consistency. This change addresses cases where the node_ops.rename update doesn't propagate across different file systems or mount points, ensuring that the parent directory reference is correctly updated.
Siobhan committedMay 20, 2024 Configuration menu - View commit details
-
Copy full SHA for 0efd61b - Browse repository at this point
Copy the full SHA 0efd61bView commit details -
Merge branch 'main' into fix/ensure-rename-updates-across-file-systems
Siobhan Bamber committedMay 20, 2024 Configuration menu - View commit details
-
Copy full SHA for 3cb838d - Browse repository at this point
Copy the full SHA 3cb838dView commit details
Commits on May 21, 2024
-
docs: Update code comment for correctness
Siobhan committedMay 21, 2024 Configuration menu - View commit details
-
Copy full SHA for ad46580 - Browse repository at this point
Copy the full SHA ad46580View commit details -
refactor: Remove redundant/duplicated code
As we're now calling `old_node.parent = new_dir` from the `finally` block in library_fs.js, it's not necessary to duplicate that line in MEMFS or PROXYFS.
Siobhan committedMay 21, 2024 Configuration menu - View commit details
-
Copy full SHA for 4139773 - Browse repository at this point
Copy the full SHA 4139773View commit details -
Merge branch 'main' into fix/ensure-rename-updates-across-file-systems
Siobhan Bamber committedMay 21, 2024 Configuration menu - View commit details
-
Copy full SHA for f1ca70c - Browse repository at this point
Copy the full SHA f1ca70cView commit details -
docs: Tweak wording in code comment
Siobhan committedMay 21, 2024 Configuration menu - View commit details
-
Copy full SHA for 3107edb - Browse repository at this point
Copy the full SHA 3107edbView commit details -
Merge branch 'fix/ensure-rename-updates-across-file-systems' of https…
…://github.com/SiobhyB/emscripten into fix/ensure-rename-updates-across-file-systems
Siobhan committedMay 21, 2024 Configuration menu - View commit details
-
Copy full SHA for 7a45fdf - Browse repository at this point
Copy the full SHA 7a45fdfView commit details -
refactor: Don't update nodes if an error is thrown
As per the feedback here, we don't want to reassign the value if an error is thrown: emscripten-core#21964 (comment)
Siobhan committedMay 21, 2024 Configuration menu - View commit details
-
Copy full SHA for 631a8bf - Browse repository at this point
Copy the full SHA 631a8bfView commit details -
docs: Update code comment for clarity
Siobhan committedMay 21, 2024 Configuration menu - View commit details
-
Copy full SHA for b555a45 - Browse repository at this point
Copy the full SHA b555a45View commit details -
Merge branch 'main' into fix/ensure-rename-updates-across-file-systems
Siobhan Bamber committedMay 21, 2024 Configuration menu - View commit details
-
Copy full SHA for 88ede14 - Browse repository at this point
Copy the full SHA 88ede14View commit details
Commits on May 22, 2024
-
Merge branch 'main' into fix/ensure-rename-updates-across-file-systems
Siobhan Bamber committedMay 22, 2024 Configuration menu - View commit details
-
Copy full SHA for 92a31bb - Browse repository at this point
Copy the full SHA 92a31bbView commit details -
refactor: Move oldNode assignment to try block
With this change, we ensure the assignment doesn't happen if an error is thrown, while also ensuring it runs before the code in the finally block.
Siobhan committedMay 22, 2024 Configuration menu - View commit details
-
Copy full SHA for b3b8ffe - Browse repository at this point
Copy the full SHA b3b8ffeView commit details