Questions tagged [socket]
2 questions
2
votes
0 answers
Is there a predefined way to detect if a file is a Unix socket?
Are there predefined Emacs functions to check if a file is a Unix socket?
The best I could come up with is the following code.
(defun socket-p (fname)
"Return non-nil if FNAME is a Unix Socket, nil otherwise."
(eq (string-to-char (nth 8…

PRouleau
- 744
- 3
- 10
0
votes
1 answer
How to prevent copy-directory from choking on Unix socket files?
I need to copy a directory tree that holds Unix socket files somewhere inside. As Unix sockets cannot be copied, when I use copy-directory, the copy-file function used by copy-directory throws an error because it cannot copy the Unix socket…

PRouleau
- 744
- 3
- 10