Damascus
Damascus is a utility crate focused on providing a simple way to interact with filesystem from rust
Supported system
| System | Status | Available Handle |
|---|---|---|
| Window | Unsupported | / |
| Linux | Supported | OverlayFs , FuseOverlayFs |
| Linux | Experimental | UnionFsFuse |
| MacOS | Unsupported | / |
How to use?
use ;
// handle can be created using complex or simple interface based on need
// NOTE : drop control if once dropped the filesystem should be unmounted
let mut o = new.unwrap;
// or
let mut o = writable.unwrap;
// or
let mut o = readonly.unwrap;
o.set_option.unwrap;
o.set_unmount_on_drop; // true by default
// once configured you can mount it
o.mount.unwrap;
// and then unmount it
o.unmount.unwrap;
// if handle is lost it can be recovered from system information
let recovered = recover.unwrap;
FAQ
- Will you target Windows and MacOS support?
- In the long run some support may be implemented for those platforms as the current implementation leave place for a cross-platform support in the future.