rust-crates / ergo_fs

ergonomic filesystem operations in rust
https://docs.rs/ergo_fs
Other
7 stars 0 forks source link

Consider reexporting ‘file’ crate #5

Open matklad opened 6 years ago

matklad commented 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.

vitiral commented 6 years ago

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!