Bug 454344

Summary: Sync from Collection makes all Virtual Files to be loaded on real file system
Product: [Applications] digikam Reporter: igor.machado <igor.machado>
Component: Database-MediaAssignee: Digikam Developers <digikam-bugs-null>
Status: REPORTED ---    
Severity: wishlist CC: metzpinguin, mwisnicki
Priority: NOR    
Version First Reported In: 7.6.0   
Target Milestone: ---   
Platform: Microsoft Windows   
OS: Microsoft Windows   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description igor.machado@gmail.com 2022-05-24 16:17:13 UTC
SUMMARY
***
NOTE: If you are reporting a crash, please try to attach a backtrace with debug symbols.
See https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports
***

Congratulations for digiKam, this is a proposal to improve it. I use it on Microsoft Windows to sync my photos loaded from iCloud Photos and OwnCloud Desktop, which use Virtual File System mounted on Windows. Currently, my system does not have enough space to hold all photos on disk, so only the photos I'm actually using are loaded on disk, while the rest only remains on cloud... I often use the option "Free Up Space" , that unloads photos from disk and only keeps them on cloud, but my issue is when I'm adding and syncing a Collection on digiKam, it loads the whole disk while syncing, and  leaves no physical space in my disk.
I wonder if there's an existing solution to this, and my guess is that these use cases will increase more and more in the future (with more cloud usage with virtual file system), so it would be nice if there was be an option on Configurations -> Configure digiKam -> Collections -> FOURTH OPTION Collection On Virtual File Systems.
I currently use "Collection on Network Shares" but this doesn't prevent everything to be loaded... I expected that digiKam could sync, by loading each photo and then applying "Free Up Space" property again automatically, leaving on Cloud the things that were already on cloud, and keeping local the things that were already local, thus not increasing disk space during sync.
Best regards!


STEPS TO REPRODUCE
1. Mount a Virtual File System directory (from OwnCloud, iCloud, etc)
2. Go to Configurations -> Configure digiKam -> Collections -> Add to Collection in Network Share

OBSERVED RESULT

See disk space be consumed when every photo is loaded to disk during sync

EXPECTED RESULT

Disk space should not change (or just slightly change) when photos are loaded during sync.

SOFTWARE/OS VERSIONS
Windows: 10
macOS: 
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 
KDE Frameworks Version: 
Qt Version: 

ADDITIONAL INFORMATION

This will affect any other system that supports Virtual Files.
Comment 1 Maik Qualmann 2022-09-07 06:09:20 UTC
*** Bug 458819 has been marked as a duplicate of this bug. ***