Skip to main content

yazi_shared/path/
kind.rs

1use crate::scheme::SchemeKind;
2
3pub enum PathKind {
4	Os,
5	Unix,
6}
7
8impl From<SchemeKind> for PathKind {
9	fn from(value: SchemeKind) -> Self {
10		match value {
11			SchemeKind::Regular => Self::Os,
12			SchemeKind::Search => Self::Os,
13			SchemeKind::Archive => Self::Os,
14			SchemeKind::Sftp => Self::Unix,
15		}
16	}
17}