mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-26 06:55:59 +03:00
always store newly created folders in DB even if it is missing
Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
This commit is contained in:
parent
899b147d59
commit
e607e9d1fb
1 changed files with 5 additions and 5 deletions
|
@ -1069,17 +1069,17 @@ Result<Vfs::ConvertToPlaceholderResult, QString> OwncloudPropagator::staticUpdat
|
|||
Vfs::UpdateMetadataTypes updateType)
|
||||
{
|
||||
const QString fsPath = localDir + item.destination();
|
||||
auto record = item.toSyncJournalFileRecordWithInode(fsPath);
|
||||
const auto dBresult = journal->setFileRecord(record);
|
||||
if (!dBresult) {
|
||||
return dBresult.error();
|
||||
}
|
||||
const auto result = vfs->convertToPlaceholder(fsPath, item, {}, updateType);
|
||||
if (!result) {
|
||||
return result.error();
|
||||
} else if (*result == Vfs::ConvertToPlaceholderResult::Locked) {
|
||||
return Vfs::ConvertToPlaceholderResult::Locked;
|
||||
}
|
||||
auto record = item.toSyncJournalFileRecordWithInode(fsPath);
|
||||
const auto dBresult = journal->setFileRecord(record);
|
||||
if (!dBresult) {
|
||||
return dBresult.error();
|
||||
}
|
||||
return Vfs::ConvertToPlaceholderResult::Ok;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue