mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
e96d1c3754
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
21 lines
343 B
Go
21 lines
343 B
Go
// +build windows
|
|
|
|
package fs
|
|
|
|
import (
|
|
"os"
|
|
"time"
|
|
)
|
|
|
|
func fixRootDirectory(p string) string {
|
|
if len(p) == len(`\\?\c:`) {
|
|
if os.IsPathSeparator(p[0]) && os.IsPathSeparator(p[1]) && p[2] == '?' && os.IsPathSeparator(p[3]) && p[5] == ':' {
|
|
return p + `\`
|
|
}
|
|
}
|
|
return p
|
|
}
|
|
|
|
func Utimes(p string, tm *time.Time) error {
|
|
return nil
|
|
}
|