#276 closed enhancement (fixed)

command-line: access to mutable files

Reported by: zooko Owned by: warner
Priority: major Milestone: 1.1.0
Component: code-frontend-cli Version: 0.7.0
Keywords: Cc:
Launchpad Bug:

Description

Extend the command-line to allow creation of mutable files (with a --mutable option to tahoe put) and overwriting of mutable files.

Change History (2)

comment:1 Changed at 2008-06-01T21:46:29Z by warner

  • Milestone changed from eventually to 1.1.0
  • Owner changed from zooko to warner
  • Status changed from new to assigned

this is probably done.. review and close.

comment:2 Changed at 2008-06-03T00:30:07Z by warner

  • Resolution set to fixed
  • Status changed from assigned to closed

Yup. "tahoe put --mutable LOCALFILE ALIAS:foo" creates and links a mutable file with the contents of LOCALFILE. A subsequent "tahoe put NEWLOCAL ALIAS:foo" modifies the contents of the existing mutable file. A subsequent "tahoe cp NEW2 ALIAS:foo" also modifies the contents of the existing file.

"cat LOCALFILE | tahoe put --mutable" will create an unlinked mutable file with the given contents. "tahoe cp LOCALFILE URI:.." can then be used to modify this file.

Unfortunately "cat NEWLOCAL | tahoe put URI:.." doesn't work.. this ought to be a way to modify the file in-place.

I'm going to add a new ticket (#441) for the last bit and close this one.

Note: See TracTickets for help on using tickets.