summaryrefslogtreecommitdiffstats
path: root/src/core.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/core.rs')
-rw-r--r--src/core.rs5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/core.rs b/src/core.rs
index d806ada..7e90770 100644
--- a/src/core.rs
+++ b/src/core.rs
@@ -18,6 +18,8 @@ use std::os::unix::io::AsRawFd;
use crate::flags::blocks::Block;
use crate::git_theme::GitTheme;
#[cfg(target_os = "windows")]
+use crate::meta::windows_utils;
+#[cfg(target_os = "windows")]
use terminal_size::terminal_size;
pub struct Core {
@@ -104,6 +106,9 @@ impl Core {
_ => 1,
};
+ #[cfg(target_os = "windows")]
+ let paths: Vec<PathBuf> = paths.into_iter().map(windows_utils::expand_home).collect();
+
for path in paths {
let mut meta =
match Meta::from_path(&path, self.flags.dereference.0, self.flags.permission) {