This repository was archived by the owner on Feb 12, 2024. It is now read-only.
This repository was archived by the owner on Feb 12, 2024. It is now read-only.
--only-hash option with directory hashes only one file #2684
Description
jsipfs add <directory> -r --only-hash
outputs hash only for the first file
- Version: 0.40.0
- Platform: x64/linux
- Subsystem: v12.13.0
Type: Bug
Severity: Low?
Description:
When trying to add a directory with --only-hash
option it only outputs hash of one file in that directory. Unlike go-ipfs
, which works correctly
Steps to reproduce the error:
./ipfs$ ls temp_folder/
file1.txt file2.txt
./ipfs$ ipfs add temp_folder/ -r --only-hash
added QmUbWZYLu5YBnzbxtkgv6BoXmvjMfHTFiU1L9G3DABiAHZ temp_folder/file1.txt
added QmZ1sZS9Xp5PdkdQ2mf9tJuBaVRxEX2eBsbzeQ9FvoqBKJ temp_folder/file2.txt
added QmVcSRW5fbqQNxc5RxMKsfMDcJ8xHTULvQViPfnX68hAG1 temp_folder
32 B / 32 B [=========================================================]
./ipfs$ jsipfs add temp_folder/ -r --only-hash
added QmUbWZYLu5YBnzbxtkgv6BoXmvjMfHTFiU1L9G3DABiAHZ temp_folder/file1.txt