fix override again
This commit is contained in:
parent
e954d4c1e4
commit
41b3f12f50
1 changed files with 1 additions and 1 deletions
|
@ -65,7 +65,7 @@ func CopyDir(source string, dest string, override bool) (err error) {
|
|||
}
|
||||
} else {
|
||||
// perform copy
|
||||
if Exists(destinationfilepointer) && override {
|
||||
if !Exists(destinationfilepointer) || (Exists(destinationfilepointer) && override) {
|
||||
err = CopyFile(sourcefilepointer, destinationfilepointer)
|
||||
if err != nil {
|
||||
fmt.Println(err)
|
||||
|
|
Loading…
Add table
Reference in a new issue