Skip to content

Commit

Permalink
Merge pull request #5964 from chenminjian/fix/cmd/mv
Browse files Browse the repository at this point in the history
fix(cmd/mv): dst filename error
  • Loading branch information
Stebalien authored Feb 14, 2019
2 parents f749d58 + 6271dba commit 88a54fc
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions test/sharness/t0250-files-api.sh
Original file line number Diff line number Diff line change
Expand Up @@ -524,6 +524,14 @@ test_files_api() {
ipfs files mv /cats/this/is /cats/
'

test_expect_success "can mv dir and dest dir is / $EXTRA" '
ipfs files mv /cats/is /
'

test_expect_success "can mv dir and dest dir path has no trailing slash $EXTRA" '
ipfs files mv /is /cats
'

test_expect_success "mv worked $EXTRA" '
verify_dir_contents /cats file1 ipfs this is walrus &&
verify_dir_contents /cats/this
Expand Down

0 comments on commit 88a54fc

Please sign in to comment.