Fixes for caching issues

pull/3252/head
Mark Gibbons 2018-10-14 19:31:55 +01:00
parent c01c5545a5
commit fb68def3ba
1 changed files with 1 additions and 4 deletions

View File

@ -144,7 +144,7 @@ func hasWindowsDriveLetter(s string) bool {
} }
drive := s[:3] drive := s[:3]
for _, b := range "CDEFGHIJKLMNOPQRSTUVWXYZAB" { for _, b := range "CDEFGHIJKLMNOPQRSTUVWXYZABcdefghijklmnopqrstuvwxyzab" {
if d := string(b) + ":"; drive == d+`\` || drive == d+`/` { if d := string(b) + ":"; drive == d+`\` || drive == d+`/` {
return true return true
} }
@ -160,9 +160,6 @@ func replaceWinDriveLetterToVolumeName(s string) (string, error) {
return "", err return "", err
} }
path := vname + s[3:] path := vname + s[3:]
if _, err := os.Stat(filepath.Dir(path)); err != nil {
return "", err
}
return path, nil return path, nil
} }