Skip to content

Commit

Permalink
overwrite flag changes to compare src and dest files and remove from …
Browse files Browse the repository at this point in the history
…src list
  • Loading branch information
A-bel committed Dec 4, 2023
1 parent 35d432e commit 85033af
Showing 1 changed file with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -174,18 +174,18 @@ public TransferJobRequest createRequest(RequestFromODS odsTransferRequest) {
if (transferJobRequest.getOptions().isOverwrite())
s.setInfoList(expandedFiles);
else {
//Check files present in destination (given path level only)

//can use selectAndExpand but not for vfs
//Check files present in destination
List<EntityInfo> destExpandedFiles = this.selectAndExpandDestination(d, new ArrayList<>());


/*
for each file ID at dest, check if present in source list, if yes, remove that file id from src info list
expandedFiles.remove()
//for each file ID at dest, check if present in source list, if yes, remove that file id from src info list
for (EntityInfo destFile : destExpandedFiles) {
for (EntityInfo srcFile : expandedFiles) {
if (destFile.getId().equals(srcFile.getId())) {
expandedFiles.remove(srcFile);
}
}
}
s.setInfoList(expandedFiles);
*/


//TODO: fix box case handling where if no files selected by user (to match other cases)
}
Expand Down

0 comments on commit 85033af

Please sign in to comment.