Async create this directory too
This commit is contained in:
parent
5f21d9290f
commit
fc855490cf
@ -284,7 +284,8 @@ async def handle_pad(args, padid, data, info, session):
|
||||
|
||||
if args.all or (args.meta or args.text or args.html or args.dhtml):
|
||||
try:
|
||||
os.makedirs(os.path.split(metapath)[0])
|
||||
path = trio.Path(os.path.split(metapath)[0])
|
||||
await path.mkdir()
|
||||
except OSError:
|
||||
pass
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user