Ensure StandardDirs::saveDir returns existing dir

Authored by modax on Jan 4 2019, 4:42 PM.

Description

Ensure StandardDirs::saveDir returns existing dir

Summary:
This is slight adapted version of the code removed in commit
278a85f8ef9a90b1707ff6f66bd1a95155f93685. I believe it got lost
unintentionally in that commit as there are lots of places in current
codebase which relies on StandardDirs::saveDir() returning existing
directory (just check comments in those places!), e.g.:

  • AkonadiServer::startDatabaseProcess()
  • PartStreamer::PartStreamer
  • StorageJanitor::verifyExternalParts()
  • etc.

Test Plan:
akonadictl fsck on database with unreferenced external files actually moves
files to file_lost+found dir now.

Reviewers: dvratil

Reviewed By: dvratil

Subscribers: kde-pim

Tags: KDE PIM

Differential Revision: https://phabricator.kde.org/D17879

Details

Committed
dvratilJan 4 2019, 4:42 PM
Reviewer
dvratil
Differential Revision
D17879: Ensure StandardDirs::saveDir returns existing dir
Parents
R165:2db662a26c05: Fix SQL syntax error in findOrphanedItems()
Branches
Unknown
Tags
Unknown
References
tag: v18.12.1