fsextra
fsextrais a collection of extensions to simplify working with Unix-based filesystems. This library will also support cryptographic operations on files and directories by enabling thecryptofeature (> v0.2.0).
- Version: v0.2.0
Introduction
fsextra is a library for simplifying work with Unix-based filesystems. This library will grow over time and non-essential/niche features will be controlled using feature flags to prevent bloat and unneeded dependencies.
Cryptographic operations (sha256 digest, AES encryption/decryption) can be enabled using the crypto feature flag.
Recommendations? - Please use the issue tracker to suggest new features/improvements (or implement it yourself and submit a PR).
Dependencies
ring@0.16.20is required ifcryptofeature is enabled.
Basic Usage
use MetadataExtended;
use File;
use Error;
Installation
This package can be installed by adding fsextra = "*" to your Cargo.toml file.
An example of your Cargo.toml may look something like:
[]
= "your-package"
= "0.1.0"
= "2018"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[]
= "*"
SemVer
This library uses Semantic Versioning (SemVer) where a MAJOR represents breaking API changes, MINOR represents backward compatiable changes and PATCH represents a patch/hotfix.
Collections
Extensions
Added in v0.1.0, extensions cannot be disabled and main purpose of this library. Each extension provides additional methods on existing types. These types are imported only from std.
Metadata
MetadataExtended provides the following methods:
is_executable()- returning true if the file is a file (not directory) and mode() == executable (using bitwise operator).