trivial fixes
This commit is contained in:
parent
8512c9e3d7
commit
dd50d34703
17 changed files with 25 additions and 31 deletions
|
|
@ -6,7 +6,7 @@ import (
|
|||
"os"
|
||||
)
|
||||
|
||||
func CopyFile(src, dst string) (string, error) {
|
||||
func CopyIfNotExists(src, dst string) (string, error) {
|
||||
_, err := os.Stat(dst)
|
||||
if err == nil {
|
||||
return dst, nil
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue