Skip to content

Setting onlyDirectories to true results in a returned value with an additional trailing slash. #185

@btea

Description

@btea
const list = await glob('*', { onlyDirectories: true, cwd: process.cwd() + '/src' });

// Using fast-glob and tinyglobby yields the following different results:
['a', 'b', 'c'] // fast-glob
['a/', 'b/', 'c/'] // tinyglobby

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions