Skip to content

Commit 9a911c7

Browse files
committed
fix: makes sure we do fetch empty folders again
Signed-off-by: Matthieu Gallien <[email protected]>
1 parent 0248140 commit 9a911c7

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/libsync/vfs/cfapi/cfapiwrapper.cpp

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1121,11 +1121,7 @@ OCC::Result<OCC::Vfs::ConvertToPlaceholderResult, QString> OCC::CfApiWrapper::co
11211121

11221122
const auto fileIdentity = QString::fromUtf8(fileId).toStdWString();
11231123
const auto fileIdentitySize = (fileIdentity.length() + 1) * sizeof(wchar_t);
1124-
const auto createPlaceholderFlags = item.isDirectory() ?
1125-
(updateType == OCC::CfApiWrapper::CfApiUpdateMetadataType::AllMetadataOnDemandFolderPopulation) ?
1126-
CF_CONVERT_FLAG_MARK_IN_SYNC | CF_CONVERT_FLAG_ENABLE_ON_DEMAND_POPULATION :
1127-
CF_CONVERT_FLAG_MARK_IN_SYNC :
1128-
CF_CONVERT_FLAG_MARK_IN_SYNC;
1124+
const auto createPlaceholderFlags = item.isDirectory() ? CF_CONVERT_FLAG_MARK_IN_SYNC | CF_CONVERT_FLAG_ENABLE_ON_DEMAND_POPULATION : CF_CONVERT_FLAG_MARK_IN_SYNC;
11291125
const auto result = CfConvertToPlaceholder(handleForPath(path).get(), fileIdentity.data(), sizeToDWORD(fileIdentitySize), createPlaceholderFlags, nullptr, nullptr);
11301126
Q_ASSERT(result == S_OK);
11311127
if (result != S_OK) {

0 commit comments

Comments
 (0)