You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Sebb (JIRA)" <ji...@apache.org> on 2019/05/04 09:46:00 UTC
[jira] [Commented] (NET-667) FTP doesn't support size command
[ https://issues.apache.org/jira/browse/NET-667?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16833025#comment-16833025 ]
Sebb commented on NET-667:
--------------------------
Note that you should be able to use:
http://commons.apache.org/proper/commons-net/javadocs/api-3.6/org/apache/commons/net/ftp/FTP.html#sendCommand(java.lang.String,%20java.lang.String)
for any arbitrary command
> FTP doesn't support size command
> --------------------------------
>
> Key: NET-667
> URL: https://issues.apache.org/jira/browse/NET-667
> Project: Commons Net
> Issue Type: Improvement
> Components: FTP
> Affects Versions: 3.6
> Reporter: Eugène Adell
> Priority: Major
>
> The class org.apache.commons.net.ftp.FTP which implements many FTP commands (cdup cwd mkd ..) still doesn't support size command.
> Indeed there is no size() method for this class, and org.apache.commons.net.ftp.FTPCmd doesn't have the SIZE constant (as a consequence we also couldn't call sendCommand("SIZE path") as a workaround).
>
> Please don't misunderstand with FTPFile.getSize() which returns the size found from a list result (this size being also wrong when dealing with symlinks, but that's another story)
>
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)