Better file checks in narf:file-move
This commit is contained in:
parent
988f09365b
commit
38df38f9b6
1 changed files with 1 additions and 1 deletions
|
@ -60,7 +60,7 @@ provided."
|
||||||
;; Move all attachments if in org-mode
|
;; Move all attachments if in org-mode
|
||||||
(when (eq major-mode 'org-mode)
|
(when (eq major-mode 'org-mode)
|
||||||
(mapc (lambda (file)
|
(mapc (lambda (file)
|
||||||
(when (file-exists-p file)
|
(when (and (file-exists-p file) (not (f-same? old-path new-path)))
|
||||||
(rename-file file (f-expand (f-filename old-path) (f-dirname new-path)) t)))
|
(rename-file file (f-expand (f-filename old-path) (f-dirname new-path)) t)))
|
||||||
(narf/org-attachments)))
|
(narf/org-attachments)))
|
||||||
(when (buffer-modified-p)
|
(when (buffer-modified-p)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue