#2455 closed task

Magic Folder: add join commandline tool — at Version 8

Reported by: dawuud Owned by: dawuud
Priority: normal Milestone: 1.12.0
Component: code-frontend-magic-folder Version: 1.10.0
Keywords: otf-magic-folder-objective6 Cc:
Launchpad Bug:

Description (last modified by daira)

For tahoe magic-folder join INVITATION LOCAL_DIR :

  1. Parse INVITATION as COLLECTIVE_READCAP|CLIENT_WRITECAP.
  2. Write CLIENT_WRITECAP to the file magic_folder_dircap under the client's private directory.
  3. Write COLLECTIVE_READCAP to the file collective_dircap under the client's private directory.
  4. Edit the client's tahoe.cfg to set [magic_folder] enabled = True and [magic_folder] local.directory = LOCAL_DIR.

Change History (8)

comment:1 Changed at 2015-06-15T17:26:43Z by dawuud

  • Description modified (diff)

comment:2 Changed at 2015-06-15T17:27:22Z by dawuud

  • Owner changed from daira to dawuud
  • Type changed from defect to task

comment:3 Changed at 2015-06-15T17:40:12Z by dawuud

  • Summary changed from Magic Folder: add magic folder join commandline tool to Magic Folder: add join commandline tool

comment:4 Changed at 2015-06-23T06:24:06Z by dawuud

implemented the join command here in this dev branch https://github.com/david415/tahoe-lafs/tree/2454.magic-folder-create-tool.2

...however it's not quite done. It still needs to write config options to the tahoe.cfg

comment:5 Changed at 2015-06-23T09:39:23Z by dawuud

completed. appends magic-folder options to tahoe config. needs unit tests.

comment:6 Changed at 2015-06-24T00:16:29Z by dawuud

join unit test now tests that the collective read cap directory contains the readonly client dmd cap.

comment:7 in reply to: ↑ description Changed at 2015-07-07T18:55:55Z by daira

Incidentally, we decided --after the design doc was written-- to use a different separator character than "|" between the COLLECTIVE_READCAP and CLIENT_WRITECAP, because "|" is a shell metacharacter (for a pipe, which could cause particularly confusing errors if unquoted). This is easy to fix.

Last edited at 2015-07-07T18:56:19Z by daira (previous) (diff)

comment:8 Changed at 2015-07-07T18:57:32Z by daira

  • Description modified (diff)
Note: See TracTickets for help on using tickets.