server-ensure-safe-dir
server-ensure-safe-dir is a compiled Lisp function in `server.el
'.
(server-ensure-safe-dir DIR)
Make sure DIR is a directory with no race-condition issues.
Creates the directory if necessary and makes sure:
- there's no symlink involved
- it's owned by us
- it's not readable/writable by anybody else.