Skip to content
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

Use files rm and cp to update the cid of the html path #56

Closed
gscholer opened this issue Jun 4, 2021 · 2 comments
Closed

Use files rm and cp to update the cid of the html path #56

gscholer opened this issue Jun 4, 2021 · 2 comments

Comments

@gscholer
Copy link

gscholer commented Jun 4, 2021

I use ipfs saver protocol, because saving to ipns is too slow. I want to update the cid of the tiddlywiki html path after the new version was add to ipfs repo, maybe a configure of the file path is suitable to update the cid?

@gscholer gscholer changed the title Use chcid to update the cid of the html path Use files rm and cp to update the cid of the html path Jun 5, 2021
@xmaysonnave
Copy link
Owner

Thanks for your interrest.
AFAIK chcid is a way to update the file root cid, it isn't related to any data updates.
Not used in IPFS with TiddlyWiki.
Unavailable in ipfs-http-client ?

@gscholer
Copy link
Author

gscholer commented Jun 6, 2021

Yes, I misunderstand what the chcid do, but the problem is clear:

my tiddlywiki is stored in /tiddlywiki.html in MFS, after I saved the new version of the wiki to ipfs, I also want to update the path /tiddlywiki.html pointer to the new cid, files cp is the right command, but which seem not have a overwrite option (ipfs/kubo#2074), so maybe first use files rm to remove the old path and then cp the new cid to the path /tiddlywiki.html.

It is best to have a config to save the value of the tiddlywiki path.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants