Browse Source

Update file_operations.go

main
v_zhibsong 4 years ago
parent
commit
15c47ddeb9
  1. 6
      server/utils/file_operations.go

6
server/utils/file_operations.go

@ -56,7 +56,11 @@ func FileMove(src string, dst string) error {
// return err
// }
//}
err = fileMove(src, filepath.Join(dst, filepath.Base(dst)))
nDst := filepath.Join(dst, filepath.Base(dst))
if src == nDst {
return nil
}
err = fileMove(src, nDst)
if err != nil {
return err
}

Loading…
Cancel
Save