Fix code typo from the previous commit

**Cherry-pick to 5.3.x**
This commit is contained in:
Artem Bilan
2021-02-05 17:01:26 -05:00
parent a2d1edfbb9
commit e894e00ff7

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2002-2020 the original author or authors.
* Copyright 2002-2021 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -1019,9 +1019,7 @@ public abstract class AbstractRemoteFileOutboundGateway<F> extends AbstractReply
if ((this.options.contains(Option.SUBDIRS) || !isDirectory)
&& (!isDots || this.options.contains(Option.ALL))) {
else if (this.options.contains(Option.ALL) || !isDots) {
lsFiles.add(file);
}
lsFiles.add(fileToAdd);
}
if (recursion && isDirectory && !isDots) {
@@ -1037,6 +1035,7 @@ public abstract class AbstractRemoteFileOutboundGateway<F> extends AbstractReply
|| fileName.endsWith(fileSeparator + ".")
|| fileName.endsWith(fileSeparator + "..");
}
protected final List<File> filterMputFiles(File[] files) {
if (files == null) {
return Collections.emptyList();