Problem: FTP's RMD command fails with '550 Directory not empty' if the directory has any contents. Unlike the S3 adapter which uses `aws s3 rm --recursive`, FTP has no protocol-level recursive delete. Solution: emit a Python rmtree helper inside the ftpcmd script that walks the directory via MLSD, recursively deletes children (DELE for files, rmtree for subdirs), then sends RMD on the now-empty directory. |
||
|---|---|---|
| .. | ||
| files | ||
| s3 | ||
| ssh | ||
| trash | ||
| files.lua | ||
| ftp.lua | ||
| s3.lua | ||
| ssh.lua | ||
| test.lua | ||
| trash.lua | ||