From 6cc64ac14b6afc3006bb3ab0b5112b7d8453e776 Mon Sep 17 00:00:00 2001 From: David Stainton Date: Mon, 19 Oct 2015 14:14:32 +0200 Subject: [PATCH] Use argv_to_abspath for magic-folder join file path arg --- src/allmydata/scripts/magic_folder_cli.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/allmydata/scripts/magic_folder_cli.py b/src/allmydata/scripts/magic_folder_cli.py index 14ba2ca6..5356ce8b 100644 --- a/src/allmydata/scripts/magic_folder_cli.py +++ b/src/allmydata/scripts/magic_folder_cli.py @@ -6,6 +6,7 @@ from twisted.python import usage from .common import BaseOptions, BasedirOptions, get_aliases from .cli import MakeDirectoryOptions, LnOptions, CreateAliasOptions import tahoe_mv +from allmydata.util.encodingutil import argv_to_abspath from allmydata.util import fileutil from allmydata import uri @@ -123,7 +124,7 @@ class JoinOptions(BasedirOptions): magic_readonly_cap = "" def parseArgs(self, invite_code, local_dir): BasedirOptions.parseArgs(self) - self.local_dir = local_dir + self.local_dir = argv_to_abspath(str(local_dir)) fields = invite_code.split(INVITE_SEPARATOR) if len(fields) != 2: raise usage.UsageError("Invalid invite code.") -- 2.45.2