Skip to content

PathFinder.distinct is based on file name, not path #1973

@jroper

Description

@jroper

If I have the following files:

  • a/b/foo.txt
  • a/c/foo.txt

And I do:

file("a").***.distinct

I end up with only one file, even though there are two distinct paths, because the implementation of distinct matches on file name, not file path.

See playframework/playframework#4208 for an example of issues this can cause.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions