You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by gg...@apache.org on 2021/02/22 17:21:25 UTC
[commons-net] branch master updated: Simplify.
This is an automated email from the ASF dual-hosted git repository.
ggregory pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-net.git
The following commit(s) were added to refs/heads/master by this push:
new 78cb4b6 Simplify.
78cb4b6 is described below
commit 78cb4b671d899318b1936548ef876445ae77f623
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Mon Feb 22 12:21:21 2021 -0500
Simplify.
---
.../java/org/apache/commons/net/ftp/parser/VMSFTPEntryParser.java | 8 ++------
1 file changed, 2 insertions(+), 6 deletions(-)
diff --git a/src/main/java/org/apache/commons/net/ftp/parser/VMSFTPEntryParser.java b/src/main/java/org/apache/commons/net/ftp/parser/VMSFTPEntryParser.java
index e9cd2df..6b41c1f 100644
--- a/src/main/java/org/apache/commons/net/ftp/parser/VMSFTPEntryParser.java
+++ b/src/main/java/org/apache/commons/net/ftp/parser/VMSFTPEntryParser.java
@@ -189,15 +189,11 @@ public class VMSFTPEntryParser extends ConfigurableFTPFileEntryParserImpl
}
//set FTPFile name
//Check also for versions to be returned or not
- if (isVersioning())
- {
- f.setName(name);
- }
- else
+ if (!isVersioning())
{
name = name.substring(0, name.lastIndexOf(';'));
- f.setName(name);
}
+ f.setName(name);
//size is retreived in blocks and needs to be put in bytes
//for us humans and added to the FTPFile array
final long sizeInBytes = Long.parseLong(size) * longBlock;