from allmydata.util import fileutil
-INVITE_SEPERATOR = "~"
+INVITE_SEPARATOR = "~"
class CreateOptions(BasedirOptions):
nickname = None
print >>options.stderr, "magic-folder: failed to create link\n"
return -1
- print >>options.stdout, "%s%s%s" % (magic_readonly_cap, INVITE_SEPERATOR, dmd_write_cap)
+ print >>options.stdout, "%s%s%s" % (magic_readonly_cap, INVITE_SEPARATOR, dmd_write_cap)
return 0
class JoinOptions(BasedirOptions):
self.local_dir = local_dir
def join(options):
- fields = options.invite_code.split(INVITE_SEPERATOR)
+ fields = options.invite_code.split(INVITE_SEPARATOR)
assert len(fields) == 2
magic_readonly_cap, dmd_write_cap = fields
return d
def join(self, client_num, local_dir, invite_code):
- magic_readonly_cap, dmd_write_cap = invite_code.split(magic_folder_cli.INVITE_SEPERATOR)
+ magic_readonly_cap, dmd_write_cap = invite_code.split(magic_folder_cli.INVITE_SEPARATOR)
d = self.do_cli("magic-folder", "join", invite_code, local_dir, client_num=client_num)
def _done((rc,stdout,stderr)):
self.failUnless(rc == 0)