Closed terryluan12 closed 1 week ago
@terryluan12, thanks for the question.
The Overlay
backend is essentially a copy-on-write system for ZenFS. It keeps track of only the changed and deleted files.
@terryluan12 Can I close this issue?
Yep, thanks for clarifying!
From #78, I discovered that when reading a file, zen-fs always goes through the
promises.ts:readFile
and subsequently thefile.ts:read
function.If you use the Overlay backend, the
file.ts:read
function callsoverlay.ts:sync
which calls the _writable backend's syc function. If the backends are not identical however, this will result in aError: ENOENT: No such file or directory
error.I'm working to fix this, but I'm unsure about the intended behaviour. Could I get some guidance on this?