List of usage examples for org.apache.commons.net.ftp.parser MLSxEntryParser parseEntry
public static FTPFile parseEntry(String entry)
From source file:com.atomicleopard.thundr.ftp.commons.FTPClient.java
/** * Get file details using the MLST command * * @param pathname the file or directory to list, may be {@code} null * @return the file details, may be {@code null} * @throws IOException//from w ww . ja v a 2 s. c o m * @since 3.0 */ public FTPFile mlistFile(String pathname) throws IOException { boolean success = FTPReply.isPositiveCompletion(sendCommand(FTPCmd.MLST, pathname)); if (success) { String entry = getReplyStrings()[1].substring(1); // skip leading space for parser return MLSxEntryParser.parseEntry(entry); } else { return null; } }