Skip to content
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

Closed
ipfs-inactive/interface-js-ipfs-core
#587
@Velenir

Description

@Velenir

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3Low: Not priority right nowexp/noviceSomeone with a little familiarity can pick upkind/bugA bug in existing code (including security flaws)status/in-progressIn progress

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions