Skip to content

Commit

Permalink
rename
Browse files Browse the repository at this point in the history
  • Loading branch information
janvanmansum committed Dec 7, 2024
1 parent 6d9bdd8 commit ca639f7
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ public EditFiles getEditFilesFromDansDeposit(Deposit dansDeposit) {

pathFileInfoMap = removeIgnoredFiles(pathFileInfoMap, ignoredFiles);

editFiles.setAutoRenameFiles(getRenameAtUpload(pathFileInfoMap));
editFiles.setAutoRenameFiles(getAutoRenameFiles(pathFileInfoMap));

editFiles.setAddRestrictedFiles(pathFileInfoMap.entrySet().stream()
.filter(entry -> entry.getValue().getMetadata().getRestricted())
Expand All @@ -163,7 +163,7 @@ public EditFiles getEditFilesFromDansDeposit(Deposit dansDeposit) {
return editFiles;
}

private List<FromTo> getRenameAtUpload(Map<Path, FileInfo> files) {
private List<FromTo> getAutoRenameFiles(Map<Path, FileInfo> files) {
ArrayList<FromTo> fromTos = new ArrayList<>();
for (var entry : files.entrySet()) {
if (entry.getValue().isSanitized()) {
Expand Down

0 comments on commit ca639f7

Please sign in to comment.