Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
View | Details | Raw Unified | Return to bug 85257 | Differences between
and this patch

Collapse All | Expand All

(-)FTPClient.java (+4 lines)
Lines 443-448 Link Here
443
		monitor.subTask(title);
443
		monitor.subTask(title);
444
		DataConnection manager = null;
444
		DataConnection manager = null;
445
		try {
445
		try {
446
			// Add a trailing slash to ensure we list the directory content, not the current directory filtered with directoryPath 
447
			if (directoryPath != null && !directoryPath.equals("") && directoryPath.charAt(directoryPath.length()-1) != '/') { //$NON-NLS-1$
448
				directoryPath  = directoryPath + "/"; //$NON-NLS-1$
449
			}
446
			// Initiate the data transfer
450
			// Initiate the data transfer
447
			manager = initiateDataTransfer("LIST -a", directoryPath, false, 0, FtpPlugin.monitorFor(monitor)); //$NON-NLS-1$
451
			manager = initiateDataTransfer("LIST -a", directoryPath, false, 0, FtpPlugin.monitorFor(monitor)); //$NON-NLS-1$
448
			// Get the input stream from the data connection
452
			// Get the input stream from the data connection

Return to bug 85257