Skip to content
This repository was archived by the owner on Jun 26, 2026. It is now read-only.
This repository was archived by the owner on Jun 26, 2026. It is now read-only.

Hidden directories not excluded - p1 #32

Description

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions