keyhog-sources 0.5.44

keyhog-sources: pluggable input backends for KeyHog (git, S3, GCS, Azure Blob, Docker, Web)
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
use std::path::Path;

/// Convert a `Path` to a user-facing display string, stripping the
/// `\\?\` Windows verbatim prefix on Windows.
pub(crate) fn display_path(path: &Path) -> String {
    let raw = path.display().to_string();
    if cfg!(windows) {
        keyhog_core::strip_windows_verbatim_prefix(&raw).to_string()
    } else {
        raw
    }
}