mirror of
https://github.com/sxyazi/yazi.git
synced 2026-07-25 08:41:05 +00:00
..
This commit is contained in:
parent
ec8c0aae74
commit
7169b4d6fe
1 changed files with 1 additions and 0 deletions
|
|
@ -170,6 +170,7 @@ pub fn path_relative_to<'a>(path: &'a Path, root: &Path) -> Cow<'a, Path> {
|
|||
Cow::from(buf)
|
||||
}
|
||||
|
||||
#[cfg(windows)]
|
||||
pub fn backslash_to_slash(p: &Path) -> Cow<Path> {
|
||||
let bytes = p.as_os_str().as_encoded_bytes();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue