Skip to content

Commit 88a54fc

Browse files
authored
Merge pull request #5964 from chenminjian/fix/cmd/mv
fix(cmd/mv): dst filename error
2 parents f749d58 + 6271dba commit 88a54fc

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

test/sharness/t0250-files-api.sh

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -524,6 +524,14 @@ test_files_api() {
524524
ipfs files mv /cats/this/is /cats/
525525
'
526526

527+
test_expect_success "can mv dir and dest dir is / $EXTRA" '
528+
ipfs files mv /cats/is /
529+
'
530+
531+
test_expect_success "can mv dir and dest dir path has no trailing slash $EXTRA" '
532+
ipfs files mv /is /cats
533+
'
534+
527535
test_expect_success "mv worked $EXTRA" '
528536
verify_dir_contents /cats file1 ipfs this is walrus &&
529537
verify_dir_contents /cats/this

0 commit comments

Comments
 (0)