-
Notifications
You must be signed in to change notification settings - Fork 97
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
Single file preserve filename in ipfs kubo download in same directory #520
Comments
@ofman thank you for reporting, but it is a bit unclear what is the problem. |
@lidel I have created whole new repository just for ya! :) Basic usage in README.md and below: P.S. Also see same issue for other brogrammer here: #28 |
@ofman It seems that what is needed is to add a "force-overwrite" flag to allow downloaded file(s) to replace any existing. Would that be a sufficient solution to this issue? |
Oops, seems like we needed more information for this issue, please comment with more details or this issue will be closed in 7 days. |
If you want to preserve filename in ipfs kubo there is a suggestion in docs and forums 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/[email protected]/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!
The text was updated successfully, but these errors were encountered: