Add test for ipfs files cp -p
Jesse Bouwman committed
Aug 13, 2021 at 17:21 UTC
0d87b474c1017166d9f5b36435166f629cb1980b
1 file changed
+4
test/sharness/t0250-files-api.sh
+4
@@ -296,6 +296,10 @@ test_files_api() {
296
ipfs files cp /ipfs/$FILE3 /cats/this/is/a/dir/file3
297
'
298
299
+ test_expect_success "can copy file into deep dir using -p flag $EXTRA" '
300
+ ipfs files cp -p /ipfs/$FILE3 /cats/some/other/dir/file3
301
+ '
302
+
303
test_expect_success "can read file $EXTRA" '
304
ipfs files read /cats/this/is/a/dir/file3 > output
305
'