|
|
@ -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 { |
|
|
|