stash icon indicating copy to clipboard operation
stash copied to clipboard

Sort scenes by file by creation time in filesystem

Open teno668 opened this issue 8 months ago • 1 comments

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

teno668 avatar Mar 11 '26 18:03 teno668

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.

slick-daddy avatar Jun 06 '26 22:06 slick-daddy