diff options
Diffstat (limited to 'packages/meshbay-cli/src/meshbay_cli/commands/put.py')
| -rw-r--r-- | packages/meshbay-cli/src/meshbay_cli/commands/put.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/packages/meshbay-cli/src/meshbay_cli/commands/put.py b/packages/meshbay-cli/src/meshbay_cli/commands/put.py index 01a7233..cf80e02 100644 --- a/packages/meshbay-cli/src/meshbay_cli/commands/put.py +++ b/packages/meshbay-cli/src/meshbay_cli/commands/put.py @@ -18,6 +18,8 @@ import tempfile import threading from pathlib import Path +from meshbay_common.paths import long_path + from ..client.groups import my_groups from ..client.paths import handle, parse, resolve_group from ..client.pool import Pool @@ -156,7 +158,7 @@ async def _send(ctx: Context, session, group: dict, folder: str, dirs: list[list progress.start(safe(name)) lock = threading.Lock() try: - with open(job.local, "rb") as fh: + with open(long_path(job.local), "rb") as fh: def read(offset: int, length: int) -> bytes: with lock: fh.seek(offset) |