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.
isWindowsXP = true
os.RemoveAll(destPath)
_, dirName := filepath.Split(destPath)
// .vendor dir should not be copy
if dirName != doc.VENDOR {
return com.CopyDir(srcPath, destPath)
err := com.CopyDir(srcPath, destPath)
if err == nil {
// .vendor dir should not be copy
os.RemoveAll(filepath.Join(destPath, doc.VENDOR))
}
return nil
return err
}
func volumnType(dir string) string {

Loading…
Cancel
Save