-
Notifications
You must be signed in to change notification settings - Fork 0
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
Deserialize: Merging #2
Comments
Hello, there is currently no deserialize and merge method. Anyway you could create a temporarly filesystem which deserializes your file. Now you can loop over all nodes of the temp one and transfer it to your global one. |
My app would have one root virtual filesystem that always exists, at startup I would...
because they always should exist, even if a vfs is loaded later. ...we do some work... I then save the state, I serailize the filesystem to Next startup, if exists we load but there are duplicate This way can 'patch the application' with just a vfs file to use the newer overlayes files? |
As I mentioned earlier, you can create a temp filesystem which deserialize the file and then you must iterate over each dir and merge them with your main filesystem. Maybe following pseudo code helps you. Inside your
|
Ah, okay, because I get... (where "show" is the VFS instance)
|
For example if you have a file system with the path |
Hi There!
I have implemented a function to deserialize a filesystem created with Serialize...
This is working, but say create some default directories, eg "/sys", I save the file system, then load a file system, I have now in PrintDirs two "/sys" folders.
Is there a simple way to merge or overlay these?
Also is there a better way to load, so I don't load the entire thing into memory here when loading? I couldn't really think of one.
Cheers,
The text was updated successfully, but these errors were encountered: