|
From: | Lars Ingebrigtsen |
Subject: | Re: PR: dired-do-create-files now checks for trailing slashes in the target |
Date: | Thu, 30 Sep 2021 15:59:36 +0200 |
User-agent: | Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) |
Stefan Kangas <stefankangas@gmail.com> writes: > Having a slash at the end of the destination directory *is* > significant with rsync: > > $ touch foo > $ ls bar > ls: bar: No such file or directory > $ rsync foo bar/ > $ ls -al bar > total 0 > drwxr-xr-x 3 skangas wheel 96 Sep 30 15:50 . > drwxr-xr-x 4 skangas wheel 128 Sep 30 15:50 .. > -rw-r--r-- 1 skangas wheel 0 Sep 30 15:50 foo I was thinking of the "rsync -a" thing. "rsync -a d1 d2" and "rsync -a d1 d2/" does the same. (d1 is a directory and d2 doesn't exist in this scenario.) (Adding a slash to d1 does change what's happening.) -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no
[Prev in Thread] | Current Thread | [Next in Thread] |