lftp icon indicating copy to clipboard operation
lftp copied to clipboard

make mirror no longer dependant on what it is mirroring

Open arekm opened this issue 2 years ago • 2 comments

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?

arekm avatar Dec 30 '21 17:12 arekm

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.

lavv17 avatar Dec 31 '21 11:12 lavv17

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'?)

arekm avatar Jan 01 '22 13:01 arekm