Kubo gets confused and is inconsistent when file paths contains `\` escape sequences
- Dominant language
- Go
- Stars
- 17.1k
- Forks
- 3.2k
- Avg merge
- 3d 18h
- Merged PRs (30d)
- 11
Description
### Checklist
- [X] This is a bug report, not a question. Ask questions on [discuss.ipfs.io](https://discuss.ipfs.io).
- [X] I have searched on the [issue tracker](https://github.com/ipfs/kubo/issues?q=is%3Aissue) for my bug.
- [X] I am running the latest [kubo version](https://dist.ipfs.tech/#kubo) or have an issue updating.
### Installation method
built from source
### Version
```Text
v0.17
```
### Config
```json
N/A
```
### Description
Take for example this directory: https://ipfs.io/ipfs/bafyaaeqsbqfaiakvaaabeas4nymaacqcbaaq,
- the file shows up as `\n` in the gateway
- `\\n` in `ipfs ls bafyaaeqsbqfaiakvaaabeas4nymaacqcbaaq`
- but get stored as 0x20 (new line character) when downloaded with `ipfs get bafyaaeqsbqfaiakvaaabeas4nymaacqcbaaq`
- but when printed with `ipfs cat` you need to use `\\n`, `ipfs cat bafyaaeqsbqfaiakvaaabeas4nymaacqcbaaq/\\n`.
This is a broken mess, and I can't make a spec out of that, I think I'll just make a new spec for paths and fix kubo then.
Contributor guide
Assessment
This issue has not been assessed yet.