yazi-shared 26.5.6

Yazi shared library
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use crate::scheme::SchemeKind;

pub enum PathKind {
	Os,
	Unix,
}

impl From<SchemeKind> for PathKind {
	fn from(value: SchemeKind) -> Self {
		match value {
			SchemeKind::Regular => Self::Os,
			SchemeKind::Search => Self::Os,
			SchemeKind::Archive => Self::Os,
			SchemeKind::Sftp => Self::Unix,
		}
	}
}