Skip to content

Commit e894e00

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

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.
@@ -1019,9 +1019,7 @@ private void processFile(Session<F> session, String directory, String subDirecto
10191019
if ((this.options.contains(Option.SUBDIRS) || !isDirectory)
10201020
&& (!isDots || this.options.contains(Option.ALL))) {
10211021

1022-
else if (this.options.contains(Option.ALL) || !isDots) {
1023-
lsFiles.add(file);
1024-
}
1022+
lsFiles.add(fileToAdd);
10251023
}
10261024

10271025
if (recursion && isDirectory && !isDots) {
@@ -1037,6 +1035,7 @@ private boolean hasDots(String fileName) {
10371035
|| fileName.endsWith(fileSeparator + ".")
10381036
|| fileName.endsWith(fileSeparator + "..");
10391037
}
1038+
10401039
protected final List<File> filterMputFiles(File[] files) {
10411040
if (files == null) {
10421041
return Collections.emptyList();

0 commit comments

Comments
 (0)