lftp: show hidden directories and files

lftp: ftp client

Some ftp servers do not display by default hidden directories and files therefore lftp does not take care about them in certain operations, for example when trying to delete a directory that contains hidden files lftp throws the following error message: operation failed: 550 cannot delete directory: directory not empty (rm: Access failed: 550 Can't remove directory) To change this behavior.

At the current session, run
set ftp:list-options -a
Globally

Edit the file /etc/lftp.conf

# vim /etc/lftp.conf

Add the option

set ftp:list-options -a
User-level

Edit the file .lftprc.conf

$ vim .lftprc.conf

Add the option

set ftp:list-options -a

Further readings

Leave a Comment

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.