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

make mirror no longer dependant on what it is mirroring #656

Open arekm opened 2 years ago

arekm commented 2 years ago

Feature request.

Currently "mirror" works only on directories and fails on files.

Would be nice to have one command that works for all source types (dir or file).

Is there any reason that mirror should not work for files?

lavv17 commented 2 years ago

There is an option for mirroring a single file.

On Thu, 30 Dec 2021 at 20:56, Arkadiusz Miśkiewicz @.***> wrote:

Feature request.

Currently "mirror" works only on directories and fails on files.

Would be nice to have one command that works for all source types (dir or file).

Is there any reason that mirror should not work for files?

— Reply to this email directly, view it on GitHub https://github.com/lavv17/lftp/issues/656, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAHLWXDWAE42BUWLBI4WGKDUTSML3ANCNFSM5LACXCJQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you are subscribed to this thread.Message ID: @.***>

-- Alexander.

arekm commented 2 years ago

How to make it default, so "mirror file" and "mirror dir" will both work (so won't have to detect source type in scripts)

alias mirror "mirror -f"

doesn't work.

 queue mirror -c "Ron's.abc.txt"
mirror: ambiguous source directory (`' or `Ron's.abc.txt'?)