Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hidden directories not excluded - p1 #32

Open
ghost opened this issue May 21, 2021 · 0 comments
Open

Hidden directories not excluded - p1 #32

ghost opened this issue May 21, 2021 · 0 comments
Labels
bug Something isn't working

Comments

@ghost
Copy link

ghost commented May 21, 2021

Consider:

final var factory = new JWFilterGlobFactory();

final var filter = factory.create( "PDF files (*.pdf)" )
              .addRule( INCLUDE, "**/*.pdf" )
              .addRule( EXCLUDE_AND_HALT, "**/.*" )
              .build();

final var builder = builder().addFileFilters( filter );
final var config = builder.build();

try( final var chooserType = JWFileChoosers.create() ) {
  final var chooser = chooserType.create( parentWindow, config );
  chooser.showAndWait();

Expected:

  • The file chooser opens with File type set to PDF files (*.pdf).
  • No hidden files or directories (starting with .) are listed.
  • Both "." and ".." directories are listed.
  • No option to select all files in the File type list.
  • No option to select only directories in the File type list.

Actual:

  • The file chooser opens with File type set to All files (*.*).
  • User may set File type list to "All files" or "Only directories".
  • Hidden files are not excluded from the list.
  • Only "." is listed.

Not sure if this is an enhancement or a bug.

@ghost ghost changed the title Hidden directories not excluded Hidden directories not excluded - p1 May 21, 2021
@ghost ghost added the bug Something isn't working label May 21, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

0 participants