Replies: 1 comment 3 replies
-
Filesystems reconstitute themselves from the arguments passed to them at init time. This is to ensure that they can be moved between distributed machines without holding any state. memoryFS is special, since "state" is essentially everything in the filesystem in this case. I still think that copying the internal storage at pickle time might be surprising behaviour in the distributed context (we don't copy the local filesystem, for instance). Instead, I recommend you implement a save() and load() pair for memoryFS, or a pickle_with_data() method which satisfies pickle. Are you interested? |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I want to save a filesystem to a file, but it seems like that I can't do it with
pickle
, how to do that?Beta Was this translation helpful? Give feedback.
All reactions