oxinav-core 0.1.0

Core logic for OxiNav file navigator
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use std::path::PathBuf;
use thiserror::Error;

#[derive(Debug, Error)]
pub enum OxiNavError {
    #[error("I/O error at {path}: {source}")]
    Io {
        path: PathBuf,
        #[source]
        source: std::io::Error,
    },
    #[error("destination already exists: {0}")]
    DestinationExists(PathBuf),
    #[error("source not found: {0}")]
    SourceNotFound(PathBuf),
}