emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: PR: dired-do-create-files now checks for trailing slashes in the tar


From: Stefan Kangas
Subject: Re: PR: dired-do-create-files now checks for trailing slashes in the target
Date: Thu, 30 Sep 2021 15:54:33 +0200

Den tors 30 sep. 2021 kl 08:06 skrev Lars Ingebrigtsen <larsi@gnus.org>:

> Isn't that just about the opposite of the syntax in rsync?  That is,
> "rsync foo/ bar" will copy the files in foo over to bad, while "rsync
> foo bar" will copy the directory itself into bar.  (Whether you have a
> slash or not at the end of the destination directory doesn't make a
> difference.)

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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]