From 02ede6a8409e06b8880284e2e7a1bc157b5437f0 Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Fri, 16 Aug 2024 01:59:22 +0300 Subject: [PATCH] Fix(bkmk_raiohttp): Don't list FTP recursively --- Robots/bkmk_raiohttp.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.39.5