mirror of
https://github.com/uutils/coreutils.git
synced 2026-06-10 15:48:22 -07:00
+1
-1
@@ -51,7 +51,7 @@ struct Stat {
|
||||
|
||||
impl Stat {
|
||||
fn new(path: &PathBuf) -> Stat {
|
||||
let metadata = safe_unwrap!(fs::metadata(path));
|
||||
let metadata = safe_unwrap!(fs::symlink_metadata(path));
|
||||
Stat {
|
||||
path: path.clone(),
|
||||
is_dir: metadata.is_dir(),
|
||||
|
||||
Reference in New Issue
Block a user