os: Windows named pipes are listed as regular by Stat #41755
Labels
help wanted
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
OS-Windows
Milestone
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
yes
What operating system and processor architecture are you using (
go env
)?go env
OutputThe underlying OS is Windows 10, version 2004.
What did you do?
I ran os.Stat, passing an existing pipe as an example. Source code for this can be found at https://play.golang.org/p/a1O5axVpLOO
In this example, the Pipe is created in the Golang program, but the issue is also reproducible when using a different, existing pipe.
What did you expect to see?
The FileInfo should have ModeNamedPipe set.
What did you see instead?
The FileInfo had no ModeNamedPipe set and was listed as a regular file.
Output from the example code:
The text was updated successfully, but these errors were encountered: