-
Notifications
You must be signed in to change notification settings - Fork 112
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
Symlink size in File Properties dialog #679
Comments
On second thought, can we see this as a feature? 2 reports with different meanings? |
Hi, I decided to take a look at this issue as a fun introduction to the code. After some reading and figuring things out, I found that the relevant code for this exists in The quick fix would be to change the flags from (I was unsure whether to post a reply here, or to create a duplicate issue in Basic Solution: Add a second total size jobCheck if file list contains symlinks, and use a second
Simple, but inefficient. It doubles the run time of summing file sizes for Messy Solution: Revise TotalSizeJob to hold both File and Target sizesA messier fix. Add a second set of member variables alongside the existing More efficient, but arguably messier code. Particularly because it would require duplicating things like variables (to hold both sizes), queries (to query both files) and add more branching to the code. ConclusionI have other vague ideas floating around that I'm not quite ready to put into words. Some might require potentially major changes to Either way, I felt it would probably be wise to consult maintainers before messing up their code. There's probably a more elegant solution I'm missing. |
Please read above ("On second thought,..."). I'm not sure if it's good to change it. |
If other devs/users think that it's a good idea, it could be done by changing I made a patch last year but didn't find the main idea interesting, especially because no one added a comment. |
There's a discrepancy between what the File Properties dialog shows and what can be seen on the statusbar in the case of symlinks.
Expected Behavior
File Properties dialog should show the target size, as the statusbar shows.
Current Behavior
File Properties dialog shows the real symlink size, for example 8 bytes (8 B), which isn't informative.
System Information
Latest git.
EDIT: It's better to add "Target size:" in addition to "File size:".
The text was updated successfully, but these errors were encountered: