Rust File Access Wrapper Lib

This lib-proj is mainly for me to experiment with various Rust concepts.

Exposed Actions

Usages

There are 3 ways to use this library: - By calling methods directly: let result = file_access::METHOD_NAME(&file_path, &..)? - By using a FilePath handle: let file = FilePath::access(&file_path); let result = file.METHOD_NAME(&..)? - By using the AsFile trait: let file = "string_path".as_file(); let result = file.METHOD_NAME(&..)?

where file_path can be a borrowed String, &str, or file_access::file_path::FilePath.

Examples

file.writelines(&lines)?; file.appendlines(&lines)?; file.copyto(&anotherpath)?; ```

// rename a file: "anotherpath".asfile().renameto(&"anewfilepath")?; ```