Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix symlink bugs #70

Open
wants to merge 11 commits into
base: master
Choose a base branch
from
Prev Previous commit
Next Next commit
Use symlink_metadata function to get file size
GPlaczek committed Mar 30, 2023
commit b2147ffaf5a89ca2ad293f74bf26855a9d7fd327
2 changes: 1 addition & 1 deletion src/dir.rs
Original file line number Diff line number Diff line change
@@ -750,7 +750,7 @@ where
}
}
} else {
dir_size = path.as_ref().metadata()?.len();
dir_size = path.as_ref().symlink_metadata()?.len();
files.push(item);
}
Ok(DirContent {