Open matklad opened 6 years ago
There’s a nice file create which exports a couple of functions for reading/writing files:
https://crates.io/crates/file
It might or might not be useful for ergo-fs: on the one hand, it does the same thing as FileRead/Write, on the other hand, it does it with a single free standing function instead of a struct/function/method combo.
Hmm, or maybe a "file" module which mimicks that API but uses path_abs errors? It could even return the PathFile it finds/creates.
I'll have to think about it more, but good idea!
There’s a nice file create which exports a couple of functions for reading/writing files:
https://crates.io/crates/file
It might or might not be useful for ergo-fs: on the one hand, it does the same thing as FileRead/Write, on the other hand, it does it with a single free standing function instead of a struct/function/method combo.