From e26d589dc129faa3018546239fb2ac4675f5753c Mon Sep 17 00:00:00 2001 From: A Farzat Date: Sat, 6 Jun 2026 03:22:07 +0300 Subject: Move render_filename to utils as display_path --- src/util/path_display.rs | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 src/util/path_display.rs (limited to 'src/util/path_display.rs') diff --git a/src/util/path_display.rs b/src/util/path_display.rs new file mode 100644 index 0000000..e9dca4b --- /dev/null +++ b/src/util/path_display.rs @@ -0,0 +1,9 @@ +use std::path::Path; + +pub fn display_path(path: &Path) -> String { + let s = format!("{:?}", path); + s.strip_prefix('"') + .and_then(|s| s.strip_suffix('"')) + .unwrap_or(&s) + .to_string() +} -- cgit v1.3.1