Fix code typo from the previous commit
**Cherry-pick to 5.3.x**
This commit is contained in:
@@ -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");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with 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)
|
if ((this.options.contains(Option.SUBDIRS) || !isDirectory)
|
||||||
&& (!isDots || this.options.contains(Option.ALL))) {
|
&& (!isDots || this.options.contains(Option.ALL))) {
|
||||||
|
|
||||||
else if (this.options.contains(Option.ALL) || !isDots) {
|
lsFiles.add(fileToAdd);
|
||||||
lsFiles.add(file);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (recursion && isDirectory && !isDots) {
|
if (recursion && isDirectory && !isDots) {
|
||||||
@@ -1037,6 +1035,7 @@ public abstract class AbstractRemoteFileOutboundGateway<F> extends AbstractReply
|
|||||||
|| fileName.endsWith(fileSeparator + ".")
|
|| fileName.endsWith(fileSeparator + ".")
|
||||||
|| fileName.endsWith(fileSeparator + "..");
|
|| fileName.endsWith(fileSeparator + "..");
|
||||||
}
|
}
|
||||||
|
|
||||||
protected final List<File> filterMputFiles(File[] files) {
|
protected final List<File> filterMputFiles(File[] files) {
|
||||||
if (files == null) {
|
if (files == null) {
|
||||||
return Collections.emptyList();
|
return Collections.emptyList();
|
||||||
|
|||||||
Reference in New Issue
Block a user