mirror of
https://github.com/moby/moby.git
synced 2026-07-18 05:21:32 +00:00
go-winio now defines this function, so we can consume that. Note that there's a difference between the old implementation and the original one (added in1cb9e9b44e). The old implementation had special handling for win32 error codes, which was removed in the go-winio implementation in0966e1ad56As `go-winio.GetFileSystemType()` calls `filepath.VolumeName(path)` internally, this patch also removes the `string(home[0])`, which is redundant, and could potentially panic if an empty string would be passed. Signed-off-by: Sebastiaan van Stijn <github@gone.nl>