internal: make it easier to isolate IO

This commit is contained in:
Aleksey Kladov 2021-07-17 16:43:33 +03:00
parent a2f83c956e
commit 9318c643f1
8 changed files with 58 additions and 35 deletions

View file

@ -121,6 +121,7 @@ impl VfsPath {
#[cfg(windows)]
{
use windows_paths::Encode;
let path: &std::path::Path = path.as_ref();
let components = path.components();
let mut add_sep = false;
for component in components {