mirror of
https://github.com/go-kratos/kratos.git
synced 2025-03-17 21:07:54 +02:00
Update path.go (#2023)
This commit is contained in:
parent
bbb96f1e1f
commit
ec2e3ab24e
@ -79,14 +79,14 @@ func copyDir(src, dst string, replaces, ignores []string) error {
|
||||
}
|
||||
srcfp := path.Join(src, fd.Name())
|
||||
dstfp := path.Join(dst, fd.Name())
|
||||
var e error
|
||||
if fd.IsDir() {
|
||||
if err = copyDir(srcfp, dstfp, replaces, ignores); err != nil {
|
||||
return err
|
||||
}
|
||||
e = copyDir(srcfp, dstfp, replaces, ignores)
|
||||
} else {
|
||||
if err = copyFile(srcfp, dstfp, replaces); err != nil {
|
||||
return err
|
||||
}
|
||||
e = copyFile(srcfp, dstfp, replaces)
|
||||
}
|
||||
if e != nil {
|
||||
return e
|
||||
}
|
||||
}
|
||||
return nil
|
||||
|
Loading…
x
Reference in New Issue
Block a user