Skip to content

The pattern **/filename does not match the file in the root folder. #2355

@Gorniaky

Description

@Gorniaky
- root
-- filename
-- folder
--- filename
import "package:glob/glob.dart";
import "package:glob/list_local_fs.dart";

void main() async {
  await for (final entity in Glob("**/filename").list()) {
    print(entity.path);
  }
}

As a result of the code above, it prints ./folder/filename, but not ./filename.

{filename,**/filename} has also been tested.

**filename works, but it also retrieves any file ending in filename.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions