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

Gary D. Gregory commented on NET-737:
-------------------------------------

Hello [~babakabd]

Please try using 3.12.0-SNAPSHOT (or a local build of git master) and:
{code:java}
FTPSClient ftps = new FTPSClient();
// Your other calls, don't list files.
ftps.setStrictReplyParsing(false);
ftps.setControlEncoding("UTF-8");
ftps.setEnabledProtocols(new String[] { "TLSv1.2" } );
ftps.connect(host, port);
ftps.login(user, password))
ftps.execPBSZ(0);
ftps.execPROT("P");
ftps.enterLocalPassiveMode();
ftps.sendCommand("OPTS UTF8 ON");
// end of your other calls

FTPClientConfig config = new FTPClientConfig(ftps.getSystemTypeOverride());
config.setUnparseableEntries(true);
ftps.configure(config);

// now list the files.
FTPFile[] files = ftps.lilstFiles(...);
{code}

This should let us see if there is a difference between using 
{{setUnparseableEntries(true)}} and the default, which is {{false}}.

TY
 

> listFiles function does not return large files
> ----------------------------------------------
>
>                 Key: NET-737
>                 URL: https://issues.apache.org/jira/browse/NET-737
>             Project: Commons Net
>          Issue Type: Bug
>          Components: FTP
>    Affects Versions: 3.11.1
>            Reporter: Babak Abdollahi
>            Priority: Major
>
> If the directory has a large file (~90GB) the [listFiles(String 
> path)|https://github.com/apache/commons-net/blob/rel/commons-net-3.11.1/src/main/java/org/apache/commons/net/ftp/FTPClient.java#L2246]
>  skips that file and returns the rest.
> Note that listNames(String) returns all the files including the large file.
> To create the large file, you can use 
> {code:java}
> fsutil file createNew huge_file.txt 100000000000  // ~93 GB{code}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to