Skip to content
This repository has been archived by the owner on Feb 12, 2024. It is now read-only.

docs(ipfs.files.ls): type is a number #2939

Closed
wants to merge 1 commit into from

Conversation

zebateira
Copy link

Each object contains a property type which is a number, not a string.
0-file
1-directory

Each object contains a property `type` which is a `number`, not a string.
0-file
1-directory
achingbrain added a commit that referenced this pull request Oct 27, 2020
Supersedes #3345 #2939
Fixes #3330 #2948

BREAKING CHANGE: types returned by `ipfs.files.ls` are now strings, in line with the docs but different to previous behaviour

Co-authored-by: Geoffrey Cohler <g.cohler@computer.org>
@achingbrain
Copy link
Member

Fixed in #3352

@achingbrain
Copy link
Member

Thanks for opening this but the fix is to have it return strings consistent with ipfs.files.stat

@zebateira
Copy link
Author

@achingbrain no worries, thank you for getting back to this 🙏

@zebateira zebateira deleted the patch-1 branch October 27, 2020 15:43
SgtPooki referenced this pull request in ipfs/js-kubo-rpc-client Aug 18, 2022
Supersedes #3345 #2939
Fixes #3330 #2948

BREAKING CHANGE: types returned by `ipfs.files.ls` are now strings, in line with the docs but different to previous behaviour

Co-authored-by: Geoffrey Cohler <g.cohler@computer.org>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants