diff --git a/test/sharness/t0250-files-api.sh b/test/sharness/t0250-files-api.sh index 793e168bedec..8b7c9fdf811c 100755 --- a/test/sharness/t0250-files-api.sh +++ b/test/sharness/t0250-files-api.sh @@ -260,6 +260,12 @@ test_files_api() { verify_dir_contents /cats/this/is/a/dir ' + test_expect_success "dir has correct name" ' + echo "this/" > ls_dir_expected && + ipfs files ls -l /cats | grep this/ | awk '\''{print $1}'\'' > ls_dir_actual && + test_cmp ls_dir_expected ls_dir_actual + ' + test_expect_success "can copy file into new dir $EXTRA" ' ipfs files cp /ipfs/$FILE3 /cats/this/is/a/dir/file3 '