]> git.phdru.name Git - bookmarks_db.git/commitdiff
Fix(bkmk_raiohttp): Don't list FTP recursively
authorOleg Broytman <phd@phdru.name>
Thu, 15 Aug 2024 22:59:22 +0000 (01:59 +0300)
committerOleg Broytman <phd@phdru.name>
Fri, 16 Aug 2024 16:13:25 +0000 (19:13 +0300)
Robots/bkmk_raiohttp.py

index 44f4cf79367c99b7dfd90760b6b9f7329d44bf8f..df47aa40bb1adcafe7f27e9503a94bdc03854931 100644 (file)
@@ -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