Community
Participate
Working Groups
monitor.subTask(title);
DataConnection manager = null;
try {
// Add a trailing slash to ensure we list the directory content, not the current directory filtered with directoryPath
if (directoryPath != null && !directoryPath.equals("") && directoryPath.charAt(directoryPath.length()-1) != '/') { //$NON-NLS-1$
directoryPath = directoryPath + "/"; //$NON-NLS-1$
}
// Initiate the data transfer
manager = initiateDataTransfer("LIST -a", directoryPath, false, 0, FtpPlugin.monitorFor(monitor)); //$NON-NLS-1$
// Get the input stream from the data connection