Function: treemacs--get-path-status
treemacs--get-path-status is a byte-compiled function defined in
treemacs-workspaces.el.
Signature
(treemacs--get-path-status PATH)
Documentation
Get the status of PATH.
Returns either
* local-readable when PATH is a local readable file or directory,
* local-unreadable when PATH is a local unreadable file or directory,
* remote-readable when PATH is a remote readable file or directory,
* remote-unreadable when PATH is a remote unreadable file or directory,
* remote-disconnected when PATH is remote, but the connection is down, or
* extension when PATH is not a string.
Source Code
;; Defined in ~/.emacs.d/elpa/treemacs-20251226.1307/treemacs-workspaces.el
(defun treemacs--get-path-status (path)
"Get the status of PATH.
Returns either
* `local-readable' when PATH is a local readable file or directory,
* `local-unreadable' when PATH is a local unreadable file or directory,
* `remote-readable' when PATH is a remote readable file or directory,
* `remote-unreadable' when PATH is a remote unreadable file or directory,
* `remote-disconnected' when PATH is remote, but the connection is down, or
* `extension' when PATH is not a string."
(declare (side-effect-free t))
(cond
((not (stringp path)) 'extension)
((not (file-remote-p path))
(if (file-readable-p path) 'local-readable 'local-unreadable))
((not (file-remote-p path nil t)) 'remote-disconnected)
((file-readable-p path) 'remote-readable)
(t 'remote-unreadable)))