Open victorb opened 6 years ago
Updated title to be more clear as it still works as a directory, but just the icon is wrong.
I don't know if this should be a separate issue but I noticed the gateway doesn't seem to like uppercase extensions either.
I noticed this just now-- See: http://talks.benet.ai/2018-07-08-ipfs-dev-meetings -- these are all directories
So, the issue is that the directory doesn't store any information about file types (except file names). ls
works around this by fetching the root block of every directory entry but that's could cause some performance issues on the gateway.
Version information:
Type:
Bug
Severity:
Low
Description:
When adding a directory that has a link
protocol.ai
, the gateway shows this directory as a Adobe Illustrator file (I think) rather than a directory.Steps to reproduce:
Looking at the gateway on the test directory (https://ipfs.io/ipfs/QmQ9C4WiXrPE2NUW8GM3GwXdZudvxzJynMM7XwzBxi3CeX) you'll see the following:
Notice the
protocol.ai
link shows some file extension icon instead of the directory icon.Edit: it still works as a directory though, as you can navigate to https://ipfs.io/ipfs/QmQ9C4WiXrPE2NUW8GM3GwXdZudvxzJynMM7XwzBxi3CeX/protocol.ai/ and see the right output. But the icon for the directory is wrong.