Type Alias FilePath

Source
pub type FilePath = FilePath;
Expand description

Path to represent a file.
This is tauri_plugin_fs::FilePath for compatibility.

§Note

In this crate, functions that take this as an argument will work correctly if it is the value returned by a function within this crate, at a minimum. And FilePath::Path(_) will not work in this crate.

§Typescript type

type DirPath = string

Aliased Type§

enum FilePath {
    Url(Url),
    Path(PathBuf),
}

Variants§

§

Url(Url)

file:// URIs or Android content:// URIs.

§

Path(PathBuf)

Regular [PathBuf]