Here's a snippet with the same settings where it tries listing the first directory and then just stops in another log:
> 2025-08-20 15:18:12.849 Script: ls -- "/1 xxxxx CLIENTS/xxxxxxxx/Sydney TPA/A-CAP/Client Folders/xxxxxxxx/"
. 2025-08-20 15:18:12.849 Retrieving directory listing...
> 2025-08-20 15:18:12.849 CWD /1 xxxx CLIENTS/xxxxxx/Sydney TPA/A-CAP/Client Folders/xxxxxxxxxxxx
. 2025-08-20 15:20:42.155 Timeout detected. (control connection)
. 2025-08-20 15:20:42.155 Could not retrieve directory listing.
. 2025-08-20 15:20:42.164 Retry interval expired, will not retry transfer
< 2025-08-20 15:20:42.171 Script: Lost connection.
< 2025-08-20 15:20:42.171 Timeout detected. (control connection)
< 2025-08-20 15:20:42.171 Could not retrieve directory listing.
< 2025-08-20 15:20:42.171 Error listing directory '/1 xxxxx CLIENTS/xxxxx/Sydney TPA/A-CAP/Client Folders/xxxxxxx'.