Documentation
¶
Overview ¶
Package configdir finds the machine's Physa settings directory: $XDG_CONFIG_HOME/physa when that is an absolute path, else ~/.config/physa.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Dir ¶
Dir returns the settings directory, reading XDG_CONFIG_HOME and HOME through getenv, the command's lookup of its environment. It does not create it; see Ensure.
func Ensure ¶
Ensure creates dir and its missing parents with mode 0700. An existing directory named physa is set to 0700. Any other existing directory that is group- or other-accessible is refused and left as it is, so a mistaken dir such as the home directory is never tightened. dir must be absolute.
Types ¶
This section is empty.