[ 
https://issues.apache.org/jira/browse/NET-566?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14263209#comment-14263209
 ] 

Gary Russell commented on NET-566:
----------------------------------

Yes, NLST works (the filenames are returned with the leading space in the 
path), but it's not very useful if the target directory has subdirectories 
because you can't filter them out; but I'll check with him if it would work for 
his use case.

> UnixFTPEntryParser Drops Leading Spaces from File Names
> -------------------------------------------------------
>
>                 Key: NET-566
>                 URL: https://issues.apache.org/jira/browse/NET-566
>             Project: Commons Net
>          Issue Type: Bug
>          Components: FTP
>    Affects Versions: 3.3
>         Environment: OSX client, Linux ftpd
>            Reporter: Gary Russell
>
> The {{UnixFTPEntryParser}} [regular expression | 
> http://svn.apache.org/viewvc/commons/proper/net/trunk/src/main/java/org/apache/commons/net/ftp/parser/UnixFTPEntryParser.java?view=markup]
>  (line 106) consumes all spaces between the timestamp and the file name.
> The {{FTPFile.name}} property ends up getting a value with stripped leading 
> spaces.
> Reported by Spring Integration user at https://jira.spring.io/browse/INT-3591



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to