use crate::{
_dep::_std::fs::{
canonicalize, copy, create_dir, create_dir_all, exists, hard_link, metadata, read,
read_dir, read_link, read_to_string, remove_dir, remove_dir_all, remove_file, rename,
set_permissions, symlink_metadata, write,
},
FileMetadata, FilePermissions, IoResult, IterDirRead, Path, PathBuf,
};
#[doc = crate::_tags!(fs namespace)]
#[derive(Debug)]
pub struct Fs;
#[rustfmt::skip]
impl Fs {
pub fn canonicalize<P: AsRef<Path>>(path: P) -> IoResult<PathBuf> { canonicalize(path) }
pub fn copy<P: AsRef<Path>, Q: AsRef<Path>>(from: P, to: Q) -> IoResult<u64> { copy(from, to) }
pub fn create_dir<P: AsRef<Path>>(path: P) -> IoResult<()> { create_dir(path) }
pub fn create_dir_all<P: AsRef<Path>>(path: P) -> IoResult<()> { create_dir_all(path) }
pub fn exists<P: AsRef<Path>>(path: P) -> IoResult<bool> { exists(path) }
pub fn hard_link<P: AsRef<Path>, Q: AsRef<Path>>(original: P, link: Q) -> IoResult<()> {
hard_link(original, link)
}
pub fn metadata<P: AsRef<Path>>(path: P) -> IoResult<FileMetadata> { metadata(path) }
pub fn read<P: AsRef<Path>>(path: P) -> IoResult<Vec<u8>> { read(path) }
pub fn read_dir<P: AsRef<Path>>(path: P) -> IoResult<IterDirRead> { read_dir(path) }
pub fn read_link<P: AsRef<Path>>(path: P) -> IoResult<PathBuf> { read_link(path) }
pub fn read_to_string<P: AsRef<Path>>(path: P) -> IoResult<String> { read_to_string(path) }
pub fn remove_dir<P: AsRef<Path>>(path: P) -> IoResult<()> { remove_dir(path) }
pub fn remove_dir_all<P: AsRef<Path>>(path: P) -> IoResult<()> { remove_dir_all(path) }
pub fn remove_file<P: AsRef<Path>>(path: P) -> IoResult<()> { remove_file(path) }
pub fn rename<P: AsRef<Path>, Q: AsRef<Path>>(from: P, to: Q) -> IoResult<()> {
rename(from, to)
}
pub fn set_permissions<P: AsRef<Path>>(path: P, perm: FilePermissions) -> IoResult<()> {
set_permissions(path, perm)
}
pub fn symlink_metadata<P: AsRef<Path>>(path: P) -> IoResult<FileMetadata> {
symlink_metadata(path)
}
pub fn write<P: AsRef<Path>, C: AsRef<[u8]>>(path: P, contents: C) -> IoResult<()> {
write(path, contents)
}
}