Skip to main content

Module fs_utils

Module fs_utils 

Source
Expand description

Module providing support for handling paths relative to a CheckedDir.

The underlying relative path of a RelKeyPath should not be manipulated directly. Instead, prefer converting it to an absolute path using checked_path where possible. You may also use the checked_op macro to call CheckedDir functions on the path.

Re-exportsยง

use std::io; ๐Ÿ”’
use std::path::Path; ๐Ÿ”’
use std::path::PathBuf; ๐Ÿ”’
use std::sync::Arc; ๐Ÿ”’
use fs_mistrust::CheckedDir; ๐Ÿ”’
use tor_error::ErrorKind; ๐Ÿ”’
use tor_error::HasKind; ๐Ÿ”’
use tor_key_forge::KeystoreItemType; ๐Ÿ”’
use crate::ArtiPathUnavailableError; ๐Ÿ”’
use crate::KeySpecifier; ๐Ÿ”’
pub(crate) use internal::checked_op; ๐Ÿ”’

Modulesยง

internal ๐Ÿ”’
Private module for reexporting the checked_op macro.

Structsยง

RelKeyPath ๐Ÿ”’
The path of a key, relative to a CheckedDir.

Enumsยง

FilesystemAction ๐Ÿ”’
The action that caused a FilesystemError.
FilesystemError ๐Ÿ”’
An error that occurred while accessing the filesystem.