From bd6a82c4718e2cb2002360966074d8ac54227f29 Mon Sep 17 00:00:00 2001 From: Camilla Harris <31481972+cdkharris@users.noreply.github.com> Date: Thu, 25 Jul 2024 12:24:39 +0100 Subject: [PATCH] Untangle comments about rsync on directories --- _episodes/16-transferring-files.md | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/_episodes/16-transferring-files.md b/_episodes/16-transferring-files.md index 5548dd6d..88a1ac5c 100644 --- a/_episodes/16-transferring-files.md +++ b/_episodes/16-transferring-files.md @@ -340,8 +340,9 @@ If your home directory _is_ the destination, you can leave the destination field blank, or type `~` -- the shorthand for your home directory -- for completeness. -With `scp`, a trailing slash on the target directory is optional, and has -no effect. It is important for other commands, like `rsync`. +With `scp`, directories can be uploaded using the `-r` option. A trailing +slash on a source directory is optional, and has no effect. It is important +for other commands, like `rsync`. > ## A Note on `rsync` > @@ -375,10 +376,10 @@ no effect. It is important for other commands, like `rsync`. > {: .language-bash} > > As written, this will place the local directory and its contents under your -> home directory on the remote system. If the trailing slash is omitted on -> the destination, a new directory corresponding to the transferred directory -> will not be created, and the contents of the source -> directory will be copied directly into the destination directory. +> home directory on the remote system. If a trailing slash is added to the +> source, a new directory corresponding to the transferred directory +> will not be created, and the contents of the source directory will be +> copied directly into the destination directory. > > To download a file, we simply change the source and destination: >