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

cross-platform inconsistencies in stat function #54

Open
cbeck88 opened this issue Oct 14, 2015 · 1 comment
Open

cross-platform inconsistencies in stat function #54

cbeck88 opened this issue Oct 14, 2015 · 1 comment

Comments

@cbeck88
Copy link

cbeck88 commented Oct 14, 2015

In tinkering with this, I've found that paths like /home, /home/ /home/chris and /home/chris/ are valid when this is compiled on linux, but on mingw the situation is different.

C: is not valid, but C:\ is valid. But, C:\Program Files is valid, while C:\Program Files\ is not valid, and stat returns that it is not a directory.

IMO the stat function should be modified so that it consumes any trailing path separators, then puts one back if the result is then 2 characters and the 2nd is ':'. (First part of this is more important than the second.)

@blasti
Copy link

blasti commented Aug 18, 2016

#79

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

No branches or pull requests

2 participants