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

feat(win): use size on disk for apparent size for OneDrive files #370

Merged
merged 3 commits into from
Feb 24, 2024

Conversation

pandaninjas
Copy link
Contributor

Resolves #366

Before:
image
image
After:
image
image

src/platform.rs Outdated
@@ -90,16 +90,24 @@ pub fn get_metadata(d: &Path, _use_apparent_size: bool) -> Option<(u64, Option<(
Ok(Handle::from_file(file))
}

fn get_metadata_expensive(d: &Path) -> Option<(u64, Option<(u64, u64)>)> {
fn get_metadata_expensive(d: &Path, _use_apparent_size: bool) -> Option<(u64, Option<(u64, u64)>)> {
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this doesn't need to be an '_' now as the parameter is now used

@bootandy
Copy link
Owner

Also: can you run 'cargo fmt' please.

If it's a pain - don't worry I can accept this and clean it up.

@bootandy
Copy link
Owner

Looks good. I'll accept in a couple of days to give you time to clean up first. Thanks.

@bootandy bootandy merged commit a4b5d85 into bootandy:master Feb 24, 2024
17 checks passed
@bootandy
Copy link
Owner

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Use Size on Disk on Windows
2 participants