Skip to content

follow: true doesn't follow more that 1 symbolic link #579

@pamelalozano16

Description

@pamelalozano16

"By default, a ** in a pattern will follow 1 symbolic link if it is not the first item in the pattern, or none if it is the first item in the pattern, following the same behavior as Bash.". However, some dependent modules contain multiple nested symbolic links, and the option follow: true only operates for a single level of symlinks.

dir_foo

foo.txt

dir_bar

foo

dir_baz

bar

In this case
glob.sync('dir_baz/**', {follow:true, nodir:true}) returns foo instead of foo.txt.

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