diff --git a/ops.go b/ops.go index bf05cd4..3232f81 100644 --- a/ops.go +++ b/ops.go @@ -73,6 +73,10 @@ func Mv(r *Root, src, dst string) error { return err } + if srcDir == dstDirStr && srcFname == filename { + return nil + } + return srcDirObj.Unlink(srcFname) }