Skip to content

Mojo::File::list_tree on Win32 incorrectly includes the root dir #2233

Open
@damil

Description

@damil

Line 76 in Mojo::File::list_tree says delete $all{$$self}; this does not work on Win32 because keys in %all are paths in "foo/bar" syntax, while $$self is in "foo\bar" syntax.

Subtest 'list/list_tree' in file.t fails for this reason.

I did not propose a patch because I'm not sure where would be the proper place to make sure that all paths use the same, canonical syntax.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions