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

issue on window machine #8

Open
aryaabdi opened this issue Dec 22, 2022 · 2 comments
Open

issue on window machine #8

aryaabdi opened this issue Dec 22, 2022 · 2 comments

Comments

@aryaabdi
Copy link

The iterator returns entries with excluded directory separators. For example, instead of /path/to/some/dir, it returns pathtosomedir.

@trendels
Copy link
Owner

trendels commented Jan 2, 2023

Hi @aryaabdi, I suspect this has something to do with the backslash being used as a path separator on Windows, but treated as an escape character by braceexpand (at least by default). I admit I didn't test this on Windows. I guess the default behavior could be improved.

In the meantime, does using braceexpand("...", escape=False) fix the problem for you?

@aryaabdi
Copy link
Author

aryaabdi commented Jan 4, 2023

Thank you for your reply. Yes, the problem is the backslash. I could find a workaround; I now use braceexpand on filenames and then attach the directory head to the results. Will try to see if your solution works too.

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

2 participants