diff --git a/test/sharness/t0250-files-api.sh b/test/sharness/t0250-files-api.sh index 693ca01e891..c1bed18f1a8 100755 --- a/test/sharness/t0250-files-api.sh +++ b/test/sharness/t0250-files-api.sh @@ -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