Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 334052

Summary: There is no way to filter Empty Directories in Package Explorer View
Product: [Eclipse Project] JDT Reporter: Matt <matt>
Component: UIAssignee: JDT-UI-Inbox <jdt-ui-inbox>
Status: CLOSED DUPLICATE QA Contact:
Severity: normal    
Priority: P3 CC: daniel_megert, francisu, remy.suen
Version: 3.6.1   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
A sample project that illustrates the bug none

Description Matt CLA 2011-01-11 21:52:06 EST
Build Identifier: 20100917-0705

There should be a way to filter empty directories as a result of a filter.  When a filter set has been defined that renders a directory empty, the directory should not show up in the package explorer view.

This is different than filtering directories like '.svn' or maven's target, or filtering empty packages. It's more trying to clean up empty directories trees that show up as a result of filter rules.

Context- We have a generic project in our workspace that uses filters to ignore non text based files(mp3s, jpgs, etc). It allows us to quickly edit our files in eclipse. The problem is because of the filters there are a lot of empty folders present. If eclipse can ignore any empty folders due to filters it would make the project cleaner.

Reproducible: Always

Steps to Reproduce:
1. Create a project
2. create a folder in the project
3. add files
4. create a Resource filter on the folder to filter all the files
5. the files in the folder are gone, but the folder is not
Comment 1 Matt CLA 2011-01-11 21:53:14 EST
Created attachment 186596 [details]
A sample project that illustrates the bug
Comment 2 Dani Megert CLA 2011-01-12 10:40:27 EST
(In reply to comment #1)
> Created attachment 186596 [details]
> A sample project that illustrates the bug
That doesn't seem to contain any resource filters.

*** This bug has been marked as a duplicate of bug 22202 ***