Sort scenes by file by creation time in filesystem
Describe the feature you'd like
how can i let stash app read the the creation date from file system and sort it according to creation time in my system its working only after adding new file
Describe the benefits this would bring to existing users
find the latest added scene
Is there an existing way to achieve this goal?
python or power shell script
Have you searched for an existing open/closed issue?
- [x] I have searched for existing issues and none cover the core request of my proposal
Additional context
No response
I think this can be implemented in two phases.
Phase 1: Add file_created_at sort option using files.created_at (the DB scan timestamp). This is a reasonable proxy for "when was this file added". It follows the exact pattern of the existing file_mod_time sort.
Phase 2: Add actual OS birth time support via platform-specific syscalls (Windows CreationTime, Linux statx, macOS _birthtime), stored in a new files.birth_time column.
We can choose to stop after Phase 1 because Phase 2 will be much more complex to implement but it is the correct way to do it.
If we can agree on an approach, I can dig into this.