Closed Sidfate closed 5 years ago
Yes, this package supports Windows.
Does d:\key.txt
exist for you? As in, key.txt
is in the root directory? It will have to be for us to return non-null.
We have a pretty thorough test suite that is passing on our Windows CI and there are no known bugs.
Is there any chance you could submit a failing test?
There seems to be at least a slight problem. As with the linked issue above me ^ usage will fail under Windows in Powershell and cmd, while working correctly under Windows WSL
@Linard11 yeah, I tried again, the same
question
I tried to debug this but I did not encounter this bug. Could you please point out if I did something wrong during my debug process? Also, here is my environment:
Well, you should set the cwd
to the root directory of a drive and see if you can find a file that is there in the root directory. I wouldn't expect the result to be any different, but that is supposed to be the setup needed to reproduce this.
Closing for lack of evidence. Submit a failing test if anyone wants this to be looked more.
Isn't this package compatible with windows?
findUp.sync('key.txt', { cwd: 'd:\\' })
always return null.