Bug 458820

Summary: digiKam should warn before scanning Placeholder/Cloud files
Product: [Applications] digikam Reporter: Marcin Wisnicki <mwisnicki>
Component: Database-ScanAssignee: Digikam Developers <digikam-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: caulier.gilles, metzpinguin
Priority: NOR    
Version First Reported In: 7.8.0   
Target Milestone: ---   
Platform: Microsoft Windows   
OS: Microsoft Windows   
Latest Commit: Version Fixed/Implemented In: 8.1.0
Sentry Crash Report:

Description Marcin Wisnicki 2022-09-06 21:49:09 UTC
SUMMARY
On Windows, OneDrive uses placeholder files that are downloaded lazily from the cloud.
When you start digiKam it will try to scan all pictures in ~/OneDrive/Pictures, triggering download of all of them.

Given that this is a very serious operation and may fail and make computer problematic/unusable if C: drive runs out of space I think digiKam should detect placeholder files and provide suitable warning before proceeding.

PS. Other cloud storage clients may do lazy downloads too (e.g. Google Drive FileStream), perhaps even on mac.
Comment 1 Maik Qualmann 2022-09-07 06:19:08 UTC
You should not have such virtual placeholder folders within the image collection specified in digiKam. I also think that currently we have no way to detect if the folder is a virtual cloud folder via the Qt API.

Maik
Comment 2 caulier.gilles 2023-05-02 07:44:21 UTC
Git commit ca2a7cf20b6d828e5d04a2503cbf5242daf7f1d0 by Gilles Caulier.
Committed on 02/05/2023 at 07:43.
Pushed by cgilles into branch 'master'.

Online documentation: add warning about placeholder drive in digiKam collection
FIXED-IN: 8.1.0

M  +4    -0    setup_application/collections_settings.rst

https://invent.kde.org/documentation/digikam-doc/commit/ca2a7cf20b6d828e5d04a2503cbf5242daf7f1d0