tokio-fs-ext 0.1.5

Extend tokio fs to be compatible with native and wasm
Documentation
1
2
3
4
5
6
7
8
9
10
use std::{
    io,
    path::{Path, PathBuf},
};

use crate::fs::opfs::virtualize;

pub async fn canonicalize(path: impl AsRef<Path>) -> io::Result<PathBuf> {
    virtualize(path)
}