Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
os: File.Fd returns search handle, not directory handle, on Windows #13738
It's OK now, because
I think File.Fd returns wrong value, from beginning. (maybe 1.0?)
There is no such thing as "Unix file descriptor" on Windows. So I am not sure, if what you want is in the spec or not.
What exactly do you propose we do here?
Actually, I'm not a windows expert, so I'm not confident.
First, analogy to unix systems, if I open a directory file, I expect fd is a "directory file descriptor".
Whole my suggestions are related to the question:
And my answer is:
Secondly, syscall package seems to support my point of view.
Anyway, I don't need to argue any more.
Thank you Alex for clarifying my point.