[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Check if file exists and ask before fetching, when copying
From: |
Michael Albinus |
Subject: |
Re: Check if file exists and ask before fetching, when copying |
Date: |
Tue, 04 Aug 2020 19:38:42 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) |
積丹尼 Dan Jacobson <jidanni@jidanni.org> writes:
Hi Dan,
> When we attempt to copy a file, but the target exists already, we still see
> Fetching....
> Overwrite...?
>
> Wouldn't it be better to (do the check and) ask the question before fetching?
> That way big files wouldn't be hauled over the cables, only to end up
> not being needed, because the user has changed his mind.
>
> [C runs the command dired-do-copy (found in dired-mode-map)]
That isn't Tramp, but dired. Tramp implements `copy-file'. It always
checks first, whether the target file exists.
Best regards, Michael.