-
Notifications
You must be signed in to change notification settings - Fork 501
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: non unixfs on files #1115
fix: non unixfs on files #1115
Conversation
License: MIT Signed-off-by: Henrique Dias <[email protected]>
License: MIT Signed-off-by: Henrique Dias <[email protected]>
License: MIT Signed-off-by: Henrique Dias <[email protected]>
010e190
to
b576f1b
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 👍
const stats = await ipfs.files.stat(path) | ||
return stats | ||
} catch (e) { | ||
if (e.toString().toLowerCase().includes('unixfs')) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This turned out to not be robust enough.
I have old repo with various weird stuff in it and it breaks the pin screen due to error messages without unixfs
:
I proposed a robust fix in #1121
Closes #1095.
Clicking on the item goes to to the explore section:
It has less ctx menu opts:
If the user tries to navigate to it anyway (though the URL or sth):