kubo/core
Lucas Molas 9e5d0aaaec
feat(cmds/add): --to-files option automates files cp (#8927)
* feat(cmds/add): --to-files option as files cp
* tests(to-files): ensure error handling is covered

this adds bunch of tests that guard UX around importing multiple files
into MFS, and the logic around trailing slash to indicate if the MFS
destination if a directory.

If the destination has a trailing slash, we ensure that the directory
exists and is a dir and not a file. this allows us to support
adding multipl files into MFS dir:

ipfs add file1.txt file2.txt --to-files /some/mfs/dir/

* docs: to-files helptext

Co-authored-by: Antonio Navarro Perez <antnavper@gmail.com>
Co-authored-by: Marcin Rataj <lidel@lidel.org>
2022-09-21 18:08:36 +02:00
..
bootstrap chore: bump go-libp2p v0.22.0 & go1.18&go1.19 2022-09-09 17:09:38 +02:00
commands feat(cmds/add): --to-files option automates files cp (#8927) 2022-09-21 18:08:36 +02:00
coreapi chore: bump go-libp2p v0.22.0 & go1.18&go1.19 2022-09-09 17:09:38 +02:00
coredag chore: replace ioutil with io and os (#8969) 2022-06-14 12:37:02 -04:00
corehttp feat: ipfs-webui v2.18.1 2022-09-13 23:40:49 +02:00
corerepo refactor: rename to kubo 2022-07-06 18:40:37 +02:00
coreunix refactor: rename to kubo 2022-07-06 18:40:37 +02:00
mock chore: bump go-libp2p v0.22.0 & go1.18&go1.19 2022-09-09 17:09:38 +02:00
node core/node: add configuration options for Bitswap via fx 2022-09-18 11:42:17 +02:00
.gitignore ignore testdb 2014-07-05 15:04:04 -07:00
builder.go docs: add fx plugin documentation to plugins.md (#9191) 2022-08-13 08:08:52 -04:00
core_test.go chore: bump go-libp2p v0.22.0 & go1.18&go1.19 2022-09-09 17:09:38 +02:00
core.go chore: bump go-libp2p v0.22.0 & go1.18&go1.19 2022-09-09 17:09:38 +02:00