file_operation/
lib.rs

1//! file-operation
2//!
3//! A Rust library providing comprehensive utilities for file operations with both sync/async support.
4//! Includes operations for copy, delete, move, read and write files. Simplifies file handling
5//! in Rust projects with safe and efficient methods for file manipulation and metadata querying.
6
7mod copy;
8mod delete;
9mod file;
10mod r#move;
11mod read;
12mod write;
13
14pub use {copy::*, delete::*, file::*, r#move::*, read::*, write::*};
15
16use std::{
17    ffi::OsString,
18    fmt,
19    fs::DirEntry,
20    io::Error,
21    path::{Path, PathBuf},
22    pin::Pin,
23};
24
25use tokio::{fs::ReadDir, spawn, task::JoinHandle};