Skip to content

Date-based hierarchical asset dir#1094

Open
hkclark wants to merge 1 commit intosissbruecker:masterfrom
hkclark:hierarchical_asset_dir
Open

Date-based hierarchical asset dir#1094
hkclark wants to merge 1 commit intosissbruecker:masterfrom
hkclark:hierarchical_asset_dir

Conversation

@hkclark
Copy link
Copy Markdown
Contributor

@hkclark hkclark commented Jun 14, 2025

I have over 50,000 bookmarks and storing that many in a single asset directory and storing that many asset files in a single directory doesn't seem ideal. This PR adds to _generate_asset_filename() the feature where it add {year}/{month} to the front of the filename and creates the directory/directories if they don't exist. In all of my testing it's backward compatible... it leaves any existing assets as-is and just starts putting new assets into the "hierarchical" structure. The tests have been updated as well.

Thank you

@huyz
Copy link
Copy Markdown

huyz commented Jun 15, 2025

Nice, that's useful

@hkclark hkclark force-pushed the hierarchical_asset_dir branch from 6047104 to f6ea86e Compare June 20, 2025 13:23
@hkclark
Copy link
Copy Markdown
Contributor Author

hkclark commented Oct 5, 2025

@sissbruecker I just wanted to check on this PR and see if there was anything I could do on my end to have this be something you would consider merging into main? I have been running this on my instance since mid-June and it has been working well. It shouldn't impact any existing assets... they stay as is... it just adds the subdirectories to any new entries and helps prevent having too many files in a single directory. I have found it very useful and thought others might as well. Thanks & regards.

@bdwilson
Copy link
Copy Markdown

bdwilson commented Jan 3, 2026

agreed this would be useful, but it looks like there are lots of PR's that haven't been accepted :(

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 this pull request may close these issues.

3 participants