Feature: Add Subfolder Strategy for Automatic Uploads#56
Feature: Add Subfolder Strategy for Automatic Uploads#56PhilippThaler wants to merge 8 commits intoopencloud-eu:mainfrom
Conversation
426682e to
58a9e8a
Compare
58a9e8a to
fd65b96
Compare
|
Heavily waiting for that one :-) |
|
this thing is soooo missing! Waiting for this as fu** :-) |
|
Thank you for updating the PR. |
|
Thanks for pointing that out. It was a simple typo that tripped up detekt. Fixed and verified. |
|
hi, ill start reviewing this |
|
Hey, looked through the changes and found a couple issues: MIGRATION_43_44 conflicts with the existing AutoMigration There's already an The migration should target 49->50 (current DB version is 49), not 43->44. SQL syntax in Migration_44.kt The Legacy users get YEAR subfolders Migration_34.kt sets |
Feature: Add Subfolder Strategy for Automatic Uploads
Based on #46
What does this PR do?
This PR introduces a new feature that allows users to automatically organize their camera uploads into subfolders based on the date the picture or video was taken. Users can choose to create subfolders by:
/2025/)/2025/11/)/2025/11/09/)This helps users keep their cloud storage tidy and makes it easier to browse through photos from specific dates.
How is this implemented?
UseSubfoldersBehaviourEnum:FolderBackUpConfiguration.ktto represent the different subfolder options (NONE,YEAR,YEAR_MONTH,YEAR_MONTH_DAY).AutomaticUploadsWorker:buildUploadPathto construct the remote path dynamically based on the selectedUseSubfoldersBehaviourand the file's last modified date.FolderBackUpEntityand the corresponding database migration (MIGRATION_43_44) were updated to include the newuseSubfoldersBehaviourfield.How to test this?
Settings>Automatic Uploadsfor either pictures or videos.Screenshots