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

File size incorrect after copy #1874

Closed
valoq opened this issue Dec 24, 2024 · 1 comment · Fixed by #1881
Closed

File size incorrect after copy #1874

valoq opened this issue Dec 24, 2024 · 1 comment · Fixed by #1881

Comments

@valoq
Copy link
Contributor

valoq commented Dec 24, 2024

When copying a folder with multiple larger files (e.g. media files >100mb) and the folder is not observed/selected in the preview pane, the file size of the last file copied is incorrect e.g. shown as 7 mb instead of 200mb

When the copied folder is selected and thereby previewed during copy operations all file sizes are correctly displayed.

@joelim-work
Copy link
Collaborator

I can reproduce this with the following minimal config:

set info size
set watch true

So the current implementation will ignore file changes (e.g. when writing bytes to a file) unless they belong to the current directory, any of its ancestors, or if it is being previewed. Perhaps this restriction isn't necessary and it's fine to apply it to the entire directory cache. Can you please try #1876 to see if it works for you?

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 a pull request may close this issue.

2 participants