From: Oleg Broytman Date: Thu, 15 Aug 2024 22:59:22 +0000 (+0300) Subject: Fix(bkmk_raiohttp): Don't list FTP recursively X-Git-Tag: 5.7.0~10 X-Git-Url: https://git.phdru.name/?a=commitdiff_plain;h=02ede6a8409e06b8880284e2e7a1bc157b5437f0;p=bookmarks_db.git Fix(bkmk_raiohttp): Don't list FTP recursively --- diff --git a/Robots/bkmk_raiohttp.py b/Robots/bkmk_raiohttp.py index 44f4cf7..df47aa4 100644 --- a/Robots/bkmk_raiohttp.py +++ b/Robots/bkmk_raiohttp.py @@ -93,7 +93,7 @@ async def _get_ftp(url, connect_timeout=30, timeout=60): host, port, user=user, password=password, socket_timeout=connect_timeout, path_timeout=timeout, ) as client: - async for _path, _info in client.list(path, recursive=True): + async for _path, _info in client.list(path): lines.append('%s %s' % (_info, _path)) except (OSError, aioftp.errors.AIOFTPException) as e: return e, None