~copy-file -> copy-directory
When doing an offline template download, it's more the directory than a file that you're copying and moving.
This commit is contained in:
@@ -20,7 +20,7 @@ a URL and clone to the destination using magit-clone-regular.
|
|||||||
* Copy and move template for a template name and destination directory
|
* Copy and move template for a template name and destination directory
|
||||||
#+BEGIN_SRC elisp
|
#+BEGIN_SRC elisp
|
||||||
(defun oreodave/templates/copy-template (template-name dest)
|
(defun oreodave/templates/copy-template (template-name dest)
|
||||||
(copy-file (expand-file-name (concat "~/Projects/Templates/" template-name)) dest))
|
(copy-directory (expand-file-name (concat "~/Projects/Templates/" template-name)) dest))
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
* Find if online or not
|
* Find if online or not
|
||||||
Function which checks that the network connections are = 1. If only one network
|
Function which checks that the network connections are = 1. If only one network
|
||||||
|
|||||||
Reference in New Issue
Block a user