Trait workflow_store::fs::ToPlatform

source ·
pub trait ToPlatform {
    // Required methods
    fn to_platform(&self) -> PathBuf;
    fn to_platform_string(&self) -> String;
    fn to_unix(&self) -> PathBuf;
}
Expand description

Convert path separators to unix or to current platform. Detects platform natively or using NodeJS if operating under WASM32 environment. Since in WASM32 paths default to forward slashes, when running WASM32 in Windows paths needs to be converted back and forth for various path-related functions to work.

Required Methods§

Implementations on Foreign Types§

source§

impl ToPlatform for Path

Implementors§