Skip to content

Commit

Permalink
Only attempt conversion to placeholder on new file if VFS enabled in …
Browse files Browse the repository at this point in the history
…SyncEngine::slotItemDiscovered

Signed-off-by: Claudio Cambra <[email protected]>
  • Loading branch information
claucambra committed Jul 7, 2023
1 parent 0950c85 commit 88b39cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libsync/syncengine.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -375,7 +375,7 @@ void OCC::SyncEngine::slotItemDiscovered(const OCC::SyncFileItemPtr &item)
rec._serverHasIgnoredFiles |= prev._serverHasIgnoredFiles;

// Ensure it's a placeholder file on disk
if (item->_type == ItemTypeFile) {
if (item->_type == ItemTypeFile && _syncOptions._vfs->mode() != Vfs::Off) {
const auto result = _syncOptions._vfs->convertToPlaceholder(filePath, *item);
if (!result) {
item->_status = SyncFileItem::Status::NormalError;
Expand Down

0 comments on commit 88b39cb

Please sign in to comment.