Skip to content

Commit

Permalink
Include missing expanduser() command
Browse files Browse the repository at this point in the history
  • Loading branch information
mharvilla committed Jan 29, 2024
1 parent a7f9062 commit 7a1d613
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cli/volume_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ def _store_volume_access_credentials(volume_name):
def mount_volume(self, prefix_to_mount, mountpoint):
present_working_dir = Path(__file__)
goofys_exe = present_working_dir.parent.parent / Config.GOOFYS_EXE_FILE
mount_point = Path(mountpoint)
mount_point = Path(mountpoint).expanduser()
if not mount_point.is_absolute():
raise RuntimeError('mountpoint must be a full path')
os.makedirs(mount_point, exist_ok=True)
Expand All @@ -46,7 +46,7 @@ def mount_volume(self, prefix_to_mount, mountpoint):
'--endpoint',
Config.VALDI_GATEWAY_URL,
f'{Config.VALDI_GLOBAL_ROOT}:{self.authenticator.user_info["user_id"]}/{prefix_to_mount}',
mountpoint
mount_point
],
check=True
)
Expand Down

0 comments on commit 7a1d613

Please sign in to comment.