Bug 454344 - Sync from Collection makes all Virtual Files to be loaded on real file system
Summary: Sync from Collection makes all Virtual Files to be loaded on real file system
Status: REPORTED
Alias: None
Product: digikam
Classification: Applications
Component: Database-Media (other bugs)
Version First Reported In: 7.6.0
Platform: Microsoft Windows Microsoft Windows
: NOR wishlist
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
: 458819 (view as bug list)
Depends on:
Blocks:
 
Reported: 2022-05-24 16:17 UTC by igor.machado@gmail.com
Modified: 2022-09-07 06:09 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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. ***