|
@@ -622,7 +622,7 @@ empty attachment directories."
|
|
(let ((files (org-attach-file-list attach-dir)))
|
|
(let ((files (org-attach-file-list attach-dir)))
|
|
(org-attach-tag (not files)))
|
|
(org-attach-tag (not files)))
|
|
(when org-attach-sync-delete-empty-dir
|
|
(when org-attach-sync-delete-empty-dir
|
|
- (when (and (directory-empty-p attach-dir)
|
|
|
|
|
|
+ (when (and (org-directory-empty-p attach-dir)
|
|
(if (eq 'query org-attach-sync-delete-empty-dir)
|
|
(if (eq 'query org-attach-sync-delete-empty-dir)
|
|
(yes-or-no-p "Attachment directory is empty. Delete?")
|
|
(yes-or-no-p "Attachment directory is empty. Delete?")
|
|
t))
|
|
t))
|