-
-
Notifications
You must be signed in to change notification settings - Fork 130
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
Deleting older images breaks date sorting in walk mode #705
Comments
You don't seem to understand what I was trying to put forth in this issue. example: we have 5(five) files inside 3(three) directories. Files have the following ID:
As we can see all is sorted in order here. Now lets delete file D and based on the current sorting schema in infinite image browsing the following is now the order in which we see the files:
You might notice that even though file E was updated way back far before file A, B, C, we still see file E first even though that file has not been updated since 2023-01-15. |
I have been using this for months. I know about the fuzzy. But what I am saying is that it is basing modification time on directory and not files. If I delete one image that is 1 year old in a directory of 1000 images then they ALL gets pushed to top as the software thinks every file got modified. It basically breaks that sorting mode since you effectively cannot touch a single image without scrambling the sorting order |
Here. Also datetime is not optimal for this. You are better of using time rather than datetime since you are doing comparison and not indexing cause that means you only need to compare floating point values for modified time rather than compare a string. The time module returns a Unix timestamp in floating point format. |
In case it matters the OS is Windows 11
When deleting older images the entire rest of that folder gets pushed up as most recently updated.
Shouldn't sorting be done based on file property and not folder? Because as you can see in screenshot, the files are still at their original date but the folder has been changed and thus I assume you are sorting based on folder property rather than file.
Thing is. Technically you only need to getch property of the most recent file in a folder rather than only the folder to solve this.
The text was updated successfully, but these errors were encountered: