Closed amake closed 8 months ago
Here is a workaround you can apply while this remains unaddressed:
(defun amk-safe-f-entries (old-func &rest args)
"Swallow errors to return nil."
(condition-case nil
(apply old-func args)
(file-error nil)))
(defun amk-dired-collapse-207 (old-func &rest args)
"A workaround for https://github.com/Fuco1/dired-hacks/pull/207."
(advice-add #'f-entries :around #'amk-safe-f-entries)
(apply old-func args)
(advice-remove #'f-entries #'amk-safe-f-entries))
(advice-add #'dired-collapse :around #'amk-dired-collapse-207)
(cc @MagielBruntink)
Thank you for the patch and sorry for taking so long!
On macOS the ~/.Trash directory is "accessible" according to
file-accessible-directory-p
but it is not "readable", causingf-entries
to fail. This makes opening~/
in dired fail on macOS when dired-collapse-mode is on.Also reported at https://github.com/Fuco1/dired-hacks/pull/182#issuecomment-1481062747