提交 15c47dde 编写于 作者: V v_zhibsong

Update file_operations.go

上级 0bf09204
...@@ -56,7 +56,11 @@ func FileMove(src string, dst string) error { ...@@ -56,7 +56,11 @@ func FileMove(src string, dst string) error {
// return err // 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 { if err != nil {
return err return err
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册