Skip to content

Commit

Permalink
Merge pull request #4403 from owncloud/fix/av_offline_operation_does_…
Browse files Browse the repository at this point in the history
…not_work_when_run_from_parent_folder

[BUG] Av. offline operation does not work correctly when run from a parent folder
  • Loading branch information
JuancaG05 committed Jun 5, 2024
2 parents 9d25437 + a4b67f9 commit 527fbcd
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* @author David A. Velasco
* @author David González Verdugo
* @author Aitor Ballesteros Pavón
*
* <p>
* Copyright (C) 2024 ownCloud GmbH.
* <p>
* This program is free software: you can redistribute it and/or modify
Expand Down Expand Up @@ -229,11 +229,12 @@ private void synchronizeFolder(OCFile folder) {
@NotNull Lazy<SynchronizeFolderUseCase> synchronizeFolderUseCase =
inject(SynchronizeFolderUseCase.class);
SynchronizeFolderUseCase.Params params = new SynchronizeFolderUseCase.Params(
folder.getRemotePath(),
folder.getOwner(),
folder.getSpaceId(),
SynchronizeFolderUseCase.SyncFolderMode.REFRESH_FOLDER_RECURSIVELY,
false);
folder.getRemotePath(),
folder.getOwner(),
folder.getSpaceId(),
SynchronizeFolderUseCase.SyncFolderMode.REFRESH_FOLDER_RECURSIVELY,
false
);
UseCaseResult<Unit> useCaseResult;

useCaseResult = synchronizeFolderUseCase.getValue().invoke(params);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,8 @@ public void syncFile(OCFile file) {
file.getOwner(),
file.getSpaceId(),
SynchronizeFolderUseCase.SyncFolderMode.SYNC_FOLDER_RECURSIVELY,
false)
false
)
);
}
}
Expand Down

0 comments on commit 527fbcd

Please sign in to comment.