[tahoe-dev] How do I do an immutable tree upload?
Kevin Reid
kpreid at switchb.org
Sat Nov 26 13:29:22 UTC 2011
I want to experiment with running a webapp off a Tahoe grid. It would handle its own "database" read/write, but I need to bootstrap same-origin by uploading its source files to the grid.
It seems to me that the right thing here is a command which will upload the entire file tree (preferably with exclusions) immutably (to minimize duplication when I upload with changes) and return a dircap for it. What 'tahoe' arguments will do this?
'tahoe cp' requires a target directory and does not appear to produce immutable directories. 'tahoe put' does not appear to do directories. 'tahoe backup' requires a target directory and keeps old versions.
I suppose 'tahoe cp' is the closest in function I have found, but all else being equal I would like to have my 'install' function not actually use any of the user's pre-existing Tahoe capabilities. I could 'tahoe mkdir' a fresh directory and cp into it.
Any suggestions on how to do this more cleanly?
--
Kevin Reid <http://switchb.org/kpreid/>
More information about the tahoe-dev
mailing list