From: Eli Zaretskii <eliz@gnu.org>
To: Pierre Rouleau <prouleau001@gmail.com>
Cc: 49644@debbugs.gnu.org
Subject: bug#49644: 27.2; copy-directory fails when Unix socket file is present in the source directory tree
Date: Mon, 19 Jul 2021 19:10:52 +0300 [thread overview]
Message-ID: <83zgui5lo3.fsf@gnu.org> (raw)
In-Reply-To: <EDC76903-A7BE-445C-904A-CF0B6D22ED37@gmail.com> (message from Pierre Rouleau on Mon, 19 Jul 2021 11:04:39 -0400)
> From: Pierre Rouleau <prouleau001@gmail.com>
> Date: Mon, 19 Jul 2021 11:04:39 -0400
>
> There is no Emacs crash involved here. It's just a feature request.
>
> Try `copy-directory' on a directory tree that contains one Unix socket.
> Something like "~/elpa/gnupg" which often contains Unix socket files.
> This will fail with an error stating that the Unix socket cannot be
> copied.
>
> Although its true that Unix sockets cannot be copied, it would be nice
> to offer the users the ability to copy the directory tree anyway,
> skipping the Unix socket files.
>
> The function `copy-directory' does not provide a mechanism to skip the
> copy of such files, so it becomes impossible to copy a directory tree
> that contains such a file. It would be useful to add argument to
> provide the ability to skip such files. Currently, the only way is to
> override or advise the function `copy-file' when using `copy-directory'.
I think it would be more useful to add an optional behavior whereby
any file that cannot be copied for some reason would not terminate the
copy. There's no need to allow such tolerance only for sockets. I
could imagine a huge file that cannot be copied because the target
directory doesn't have enough space, for example. Perhaps ask the
user whether to continue, when a copy fails, or provide a user option
next prev parent reply other threads:[~2021-07-19 16:10 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-07-19 15:04 bug#49644: 27.2; copy-directory fails when Unix socket file is present in the source directory tree Pierre Rouleau
2021-07-19 16:10 ` Eli Zaretskii [this message]
2021-07-19 19:50 ` Pierre Rouleau
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=83zgui5lo3.fsf@gnu.org \
--to=eliz@gnu.org \
--cc=49644@debbugs.gnu.org \
--cc=prouleau001@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).