Skip to content
This repository was archived by the owner on Jun 26, 2023. It is now read-only.

fix(mv): dst filename error #62

Merged
merged 2 commits into from
Feb 3, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .gx/lastpubver
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.1.38: QmR66iEqVtNMbbZxTHPY3F6W5QLFqZEDbFD7gzbE9HpYXU
0.1.39: QmVZdsKLHtcFBngw168x7bAMEV4a76u6AMvVzNXPKxPTBV
1 change: 1 addition & 0 deletions ops.go
Original file line number Diff line number Diff line change
@@ -60,6 +60,7 @@ func Mv(r *Root, src, dst string) error {
_ = dstDir.Unlink(filename)
case *Directory:
dstDir = n
filename = srcFname
default:
return fmt.Errorf("unexpected type at path: %s", dst)
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -43,6 +43,6 @@
"license": "MIT",
"name": "go-mfs",
"releaseCmd": "git commit -a -m \"gx publish $VERSION\"",
"version": "0.1.38"
"version": "0.1.39"
}