@Override public FTPFile[] mlistDir() throws IOException { return mlistDir(null); }
FTPSExtendedClient(boolean isImplicit, boolean shareContext) { super(isImplicit); myShareSslContext = shareContext; setStrictReplyParsing(false); }
if (builder.getFtpsMode(fileSystemOptions) == FtpsMode.IMPLICIT) client = new FTPSExtendedClient(true, shareSslContext); client = new FTPSExtendedClient(shareSslContext); if (trustManager != null) client.setTrustManager(trustManager); if (keyManager != null) client.setKeyManager(keyManager); if (socketFactoryWrapper != null) client.setSocketFactoryWrapper(socketFactoryWrapper); client.setServerSocketFactoryWrapper(serverSocketFactoryWrapper);
/** * Initiate list parsing for MLSD listings. * * @param pathname * @return the engine * @throws IOException */ private FTPListParseEngine initiateMListParsing(String pathname) throws IOException { Socket socket; FTPListParseEngine engine = new FTPListParseEngine(new MLSxLoggingEntryParser(log)); if ((socket = _openDataConnection_(FTPCommand.MLSD, pathname)) == null) { return engine; } try { engine.readServerList(socket.getInputStream(), getControlEncoding()); } finally { Util.closeQuietly(socket); completePendingCommand(); } return engine; } //[IntelliJ] WI-12266 Support directory listing with MLSD command (adding logging of mlsd command)-------
@Override public FTPFile[] mlistDir(String pathname) throws IOException { FTPListParseEngine engine = initiateMListParsing(pathname); return engine.getFiles(); }
@Override public FTPFile[] mlistDir(String pathname, FTPFileFilter filter) throws IOException { FTPListParseEngine engine = initiateMListParsing(pathname); return engine.getFiles(); }
FTPSExtendedClient(boolean shareContext) { myShareSslContext = shareContext; setStrictReplyParsing(false); }