Skip to content

Commit 11e1cc2

Browse files
committed
Fix code typo from the previous commit
**Cherry-pick to 5.3.x**
1 parent aa7a47f commit 11e1cc2

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

spring-integration-file/src/main/java/org/springframework/integration/file/remote/gateway/AbstractRemoteFileOutboundGateway.java

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2020 the original author or authors.
2+
* Copyright 2002-2021 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -1017,9 +1017,7 @@ private void processFile(Session<F> session, String directory, String subDirecto
10171017
if ((this.options.contains(Option.SUBDIRS) || !isDirectory)
10181018
&& (!isDots || this.options.contains(Option.ALL))) {
10191019

1020-
else if (this.options.contains(Option.ALL) || !isDots) {
1021-
lsFiles.add(file);
1022-
}
1020+
lsFiles.add(fileToAdd);
10231021
}
10241022

10251023
if (recursion && isDirectory && !isDots) {
@@ -1035,6 +1033,7 @@ private boolean hasDots(String fileName) {
10351033
|| fileName.endsWith(fileSeparator + ".")
10361034
|| fileName.endsWith(fileSeparator + "..");
10371035
}
1036+
10381037
protected final List<File> filterMputFiles(File[] files) {
10391038
if (files == null) {
10401039
return Collections.emptyList();

0 commit comments

Comments
 (0)