Skip to content

Commit

Permalink
Add delete tracking and symlink/unlink to OverlayFS (#8857)
Browse files Browse the repository at this point in the history
* Add symlink to FileSystem interface

* Add CopyOnWriteToMemoryFS test util

* Allow deep symlinks

* Add tests; fix bugs

* Fix tracking deletes/unlinks for symlinks

* Move CopyOnWriteToMemoryfS to @parcel/fs

Also make it serialiable for multithread

* lint

* Clean up some nits and oversights

* Merge CopyOnWriteToMemoryFS into OverlayFS

* Fix tests

* Fix tests

* Fix copy on write for nested paths

* Fix chdir behavior
  • Loading branch information
lettertwo authored Oct 5, 2023
1 parent 289510b commit ce58970
Show file tree
Hide file tree
Showing 5 changed files with 608 additions and 110 deletions.
1 change: 1 addition & 0 deletions packages/core/fs/src/NodeFS.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ export class NodeFS implements FileSystem {
copyFile: any = promisify(fs.copyFile);
stat: any = promisify(fs.stat);
readdir: any = promisify(fs.readdir);
symlink: any = promisify(fs.symlink);
unlink: any = promisify(fs.unlink);
utimes: any = promisify(fs.utimes);
ncp: any = promisify(ncp);
Expand Down
Loading

0 comments on commit ce58970

Please sign in to comment.