1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-03 23:25:26 +02:00

[192724] New Filter with Show Files Only still shows folders

This commit is contained in:
Javier Montalvo Orus 2007-07-17 15:53:12 +00:00
parent 81c459871c
commit 1fc6d8594e

View file

@ -44,6 +44,7 @@
* Javier Montalvo Orus (Symbian) - [187531] Improve exception thrown when Login Failed on FTP
* Javier Montalvo Orus (Symbian) - [187862] Incorrect Error Message when creating new file in read-only directory
* Javier Montalvo Orus (Symbian) - [194204] Renaming Files/Folders moves them sometimes
* Javier Montalvo Orus (Symbian) - [192724] New Filter with Show Files Only still shows folders
********************************************************************************/
package org.eclipse.rse.internal.services.files.ftp;
@ -499,7 +500,24 @@ public class FTPService extends AbstractFileService implements IFileService, IFT
if((filematcher.matches(f.getName()) || f.isDirectory()) && !(f.getName().equals(".") || f.getName().equals(".."))) //$NON-NLS-1$ //$NON-NLS-2$
{
results.add(f);
switch(fileType)
{
case FILE_TYPE_FOLDERS:
if(f.isDirectory())
{
results.add(f);
}
break;
case FILE_TYPE_FILES:
if(f.isFile())
{
results.add(f);
}
break;
case FILE_TYPE_FILES_AND_FOLDERS:
results.add(f);
break;
}
}
}
}