You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Bernd Eckenfels (JIRA)" <ji...@apache.org> on 2016/08/01 18:58:20 UTC
[jira] [Commented] (NET-600) FTPClient.rename() doesn't work well
for a Linux FTP
[ https://issues.apache.org/jira/browse/NET-600?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15402630#comment-15402630 ]
Bernd Eckenfels commented on NET-600:
-------------------------------------
Can you Show sample Code? "/test1.txt" is an absolute filename, I would not expect it to rename the files in the current Directory.
> FTPClient.rename() doesn't work well for a Linux FTP
> ----------------------------------------------------
>
> Key: NET-600
> URL: https://issues.apache.org/jira/browse/NET-600
> Project: Commons Net
> Issue Type: Bug
> Components: FTP
> Affects Versions: 3.5
> Environment: ubuntu vsftpd
> Reporter: stevezhuang
>
> FTPClient.rename() API doesn't work well for a Linux FTP, especially for setting a user directory as its root directory case,
> For example, for a ubuntu vsftpd, which is having "/home/user1" as its root directory, when renaming "/test1.txt" to "/test2.txt", it will return false, because those paths are not the full path.
> In this case, it should consider the workingDirectory(would be "/home/user1") together and append it to the from/to path to make the API work.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)