Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
damil opened this issue Feb 21, 2025 · 0 comments
Open

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

damil opened this issue Feb 21, 2025 · 0 comments

Comments

@damil
Copy link

damil commented Feb 21, 2025

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant