Roughly, layered::FileSystem<UPPER: fs::FileSystem, LOWER: fs::FileSystem> such that the upper layer is read/write, the lower layer is read-only. Any reading calls, if they fail to find something in the upper layer, go down to lower layer; any writing calls will only hit upper layer.
This can be useful with #1. Specifically, layered::FileSystem<in_mem::FileSystem, tar::FileSystem> would allow for an easy way to have the initial files.
Roughly,
layered::FileSystem<UPPER: fs::FileSystem, LOWER: fs::FileSystem>such that the upper layer is read/write, the lower layer is read-only. Any reading calls, if they fail to find something in the upper layer, go down to lower layer; any writing calls will only hit upper layer.This can be useful with #1. Specifically,
layered::FileSystem<in_mem::FileSystem, tar::FileSystem>would allow for an easy way to have the initial files.