diff --git a/src/snek/sssh.py b/src/snek/sssh.py index 6331efa..6b179b6 100644 --- a/src/snek/sssh.py +++ b/src/snek/sssh.py @@ -45,7 +45,7 @@ async def start_ssh_server(app,host,port): logger.info("Starting SFTP server setup") host_key_path = Path("drive") / ".ssh" / "sftp_server_key" - host_key_path.parent.mkdir(exist_ok=True) + host_key_path.parent.mkdir(exist_ok=True, parents=True) try: if not host_key_path.exists(): logger.info(f"Generating new host key at {host_key_path}")