Function: f-copy-contents
f-copy-contents is a byte-compiled function defined in f.el.
Signature
(f-copy-contents FROM TO)
Documentation
Copy contents in directory FROM, to directory TO.
Source Code
;; Defined in ~/.emacs.d/elpa/f-20241003.1131/f.el
(defun f-copy-contents (from to)
"Copy contents in directory FROM, to directory TO."
(unless (f-exists-p to)
(error "Cannot copy contents to non existing directory %s" to))
(unless (f-dir-p from)
(error "Cannot copy contents as %s is a file" from))
(--each (f-entries from)
(f-copy it (file-name-as-directory to))))