Crate qfile

source ·
Expand description

Qfile

The Qfile crate provides functionality for accessing a file by path, case-insensitive, including automatic detection, creation of a path with a new file or opening an existing file. It includes several submodules to handle different aspects of file handling, such as initialization, reading, and writing. The crate also defines some custom errors related to file operations.

Structs

An async mutex.
QFilePath: a struct that represents a file path and includes methods for manipulating it, such as checking the current code execution status and updating the path if necessary. To use the methods, you need to import QTraitSync or QTraitASync or both.

Enums

Directory: an enumeration defining options for specifying which directories should be searched in the file system files
This Rust code defines an error type QPackError for handling QFilePath cases, using the Error trait from the Rust standard library and the Error macro from the thiserror crate.

Traits

The prelude_async module is a collection of frequently used items that are imported automatically when the QPack library is used. This module saves the user from having to import each item manually.
The prelude_sync module is a collection of frequently used items that are imported automatically when the QPack library is used. This module saves the user from having to import each item manually.