lavv17 / lftp

sophisticated command line file transfer program (ftp, http, sftp, fish, torrent)
http://lftp.yar.ru
GNU General Public License v3.0
1.11k stars 162 forks source link

Feature request: Check target site during mirror for "out of disk space" error. #737

Open wav10001 opened 1 month ago

wav10001 commented 1 month ago

It would be beneficial to have the option to check the target location, specifically if the target is an FTP site, for the message "out of disk space" during transfers. This would prevent unnecessary bandwidth usage and allow for timely intervention.

Example use case:

A script using lftp to mirror a large directory to an FTP site. Without this feature, the script would likely continue looping and attempting to transfer files until the entire directory is transferred, wasting bandwidth and time. With this feature, lftp would abort the mirror job upon detecting the 'out of disk space' error, allowing the FTP site administrator to free up space before resuming the transfer at a later date.

Example error message:

452 Error writing file: No space left on device.

Requested features: