Closed josephmturner closed 1 year ago
This should not be possible. Maybe it's taking the /
as a file name?
I'll just account for this and throw an error.
To be clear, this means that hyperdrive allows a filename to be the empty string?
Seems so. I think they just take any arbitrary string as the name. Might be worthwhile to open an issue on the hyperdrive-next repo?
Yeah, it seems like allowing a filename to be the empty string is at least an oversight. I don't know of any other filesystems or HTTP servers that would allow that.
Seems so. I think they just take any arbitrary string as the name. Might be worthwhile to open an issue on the hyperdrive-next repo?
I think we added some code to handle this case
Currently, it is possible to put a file at the root of a hyperdrive, so that
hyper://PUBLIC-KEY
points to a file (whilehyper://PUBLIC-KEY/
points to the root directory). I think this is an extension of #40, but this specific case seems highly likely to confuse users.