Browse Source

copy for windows xp bug fixed

pull/103/head
Lunny Xiao 11 years ago
parent
commit
8af4d4470b
  1. 11
      cmd/helper_windows.go

11
cmd/helper_windows.go

@ -20,12 +20,13 @@ func makeLink(srcPath, destPath string) error {
// XP. // XP.
isWindowsXP = true isWindowsXP = true
os.RemoveAll(destPath) os.RemoveAll(destPath)
_, dirName := filepath.Split(destPath)
// .vendor dir should not be copy err := com.CopyDir(srcPath, destPath)
if dirName != doc.VENDOR { if err == nil {
return com.CopyDir(srcPath, destPath) // .vendor dir should not be copy
os.RemoveAll(filepath.Join(destPath, doc.VENDOR))
} }
return nil return err
} }
func volumnType(dir string) string { func volumnType(dir string) string {

Loading…
Cancel
Save