Re:In-Memory Filesystems in Rust
by bccdee on Monday August 25, 2025 @07:38PM
(#45020536)
Seems like you could just put your test files in a tmpfs, if leaving files laying around is an issue.
[ Parent
| on HN ]
You need to mount and unmount fikesystems to do that.
Take a look at the library mentioned,afero, and you'll see how nice it handles working with the file system in tests.
You can have everything in memory, and a whole new fs in each test