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

Stat call when using Memory FS is case sensitive on Windows #126

Open
DarcInc opened this issue Jul 19, 2017 · 1 comment
Open

Stat call when using Memory FS is case sensitive on Windows #126

DarcInc opened this issue Jul 19, 2017 · 1 comment
Labels

Comments

@DarcInc
Copy link

DarcInc commented Jul 19, 2017

Don't you love Windows? I'm not even sure if this is an issue, your call. I'm trying to make my library Windows happy so I'm unit testing with Windows paths. When I create an in-memory filesystem and look for a file, the call Stat relies eventually on the internal call "open" which does a map lookup on the result of getData, using the filename as a key. While on many operating systems this behavior is completely reasonable, on some (cough, cough, Windows) it would need to be a case independent compare. Is this something that qualifies as an issue or am I misusing and abusing the in memory filesystem for unholy purposes?

@ironsmile
Copy link

As far as I can tell you are absolutely correct. You cannot mock case insensitive file systems like the default Windows one with afero. I am having exactly the same issue as you do.

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

No branches or pull requests

3 participants