Function: file-accessible-directory-p dirname This function returns t if you have permission to open existing files in the directory whose name as a file is dirname ; otherwise (e.g.
if there is no such directory), it returns nil .
New Features for Files. The new function file-accessible-directory-p tells you whether you can open files in a particular directory. Specify as an argument either a directory name or a file name which names a directory file. The function returns t if you can open existing files in that directory.; The new function file-executable-p returns t if its argument is the name of a file you have …
Function: file-accessible-directory-p dirname This function returns t if you have permission to open existing files in the directory whose name as a file is dirname; otherwise (or if there is no such directory), it returns nil. The value of dirname may be either a directory.
file-accessible-directory-p file-attributes file-directory-p file-executable-p file-exists-p file-local-copy file-locked-p file-modes file-name-absolute-p file-name-all-completions file-name-all-versions file-name-as …
file-accessible-directory-p ? I haven’t tested situations when archive-contents file is readable, but all other files are not readable by current user. This comment has been minimized. Sign in to view. Copy link Quote reply syl20bnr Jan 15, 2017 Owner @d12frosted Where can …
Stack Exchange network consists of 177 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share.
Backup and auto-save are different operations, controlled by different variables. If you want to discard auto-save for files opened as root, you might change the buffer-local variable auto-save-file-name-transforms.Something like this (untested):