Skip to content

Commit

Permalink
mkdir
Browse files Browse the repository at this point in the history
  • Loading branch information
ptg committed Oct 9, 2024
1 parent b1df9a7 commit 5bbb12b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ptgctl/tools/display.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,8 @@ async def raw(api, stream_id, utf=False, **kw):

@util.async2sync
@util.interruptable
async def file(api, stream_id, out_dir, include_timestamps=False, **kw):
async def file(api, stream_id, out_dir='', include_timestamps=False, **kw):
os.makedirs(out_dir or '.', exist_ok=True)
async with api.data_pull_connect(stream_id, **kw) as ws:
with contextlib.ExitStack() as stack:
files = {}
Expand Down

0 comments on commit 5bbb12b

Please sign in to comment.