Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -569,6 +569,8 @@ private void synchronizeData(List<Object> folderAndFiles) {
OCFile updatedFile;
RemoteFile remote;

final boolean skipGetFileByPath = localFilesMap.isEmpty();

for (int i = 1; i < folderAndFiles.size(); i++) {
/// new OCFile instance with the data from the server
remote = (RemoteFile) folderAndFiles.get(i);
Expand All @@ -582,7 +584,7 @@ private void synchronizeData(List<Object> folderAndFiles) {
localFile = localFilesMap.remove(remoteFile.getRemotePath());

// TODO better implementation is needed
if (localFile == null) {
if (localFile == null && !skipGetFileByPath) {
localFile = fileDataStorageManager.getFileByPath(updatedFile.getRemotePath());
}

Expand Down