Single file preserve filename in ipfs kubo download in same directory
- Dominant language
- Go
- Stars
- 316
- Forks
- 163
- Avg merge
- 4d 12h
- Merged PRs (30d)
- 8
Description
If you want to preserve filename in ipfs kubo there is a suggestion in [docs](https://dweb-primer.ipfs.io/files-on-ipfs/wrap-directories-around-content) and [forums](https://discuss.ipfs.tech/t/how-to-keep-orginal-file-name-when-store-it-on-ipfs/4545) to wrap a folder around the file as a workaround but when you want to save a single file in the same directory you get "ErrPathEistsOverwrite" error ("path already exists and overwriting is not allowed") because in github.com/ipfs/boxo@v0.15.0/files/filewriter.go file 38 line there is os.Mkdir(fpath, 0o777) function. Can you fix this either by letting single file case preserve filenames in ipfs or by not calling os.Mkdir if there is only 1 file in directory please? Thanks!
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.