userdirs

argparse.userdirs$
object userdirs

Common directories for user applications, as specified by the XDG Base Directory Specification, with some adaptations made for macOS.

Attributes

See also:

dirs for conventional directories for an application of a given name, including system services.

Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Concise view

Type members

Classlikes

case class project(name: String)

Same as userdirs, but with a project name appended to every path.

Same as userdirs, but with a project name appended to every path.

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any

Value members

Concrete methods

def cacheHome: Path

A directory in which to read and write user-specific non-essential (cached) data.

A directory in which to read and write user-specific non-essential (cached) data.

Should be considered read-writable.

Corresponds to XDG_CACHE_HOME.

Attributes

def configDirs: List[Path]

A list of preference ordered directories relative to which configuration files should be searched, in addition to configHome.

A list of preference ordered directories relative to which configuration files should be searched, in addition to configHome.

Should be considered read-only.

Corresponds to XDG_CONFIG_DIRS.

Attributes

def configHome: Path

A directory relative to which user-specific configuration files should be written.

A directory relative to which user-specific configuration files should be written.

Should be considered read-writable.

Corresponds to XDG_CONFIG_HOME.

Attributes

def dataDirs: List[Path]

A list of preference ordered directories relative to which data files should be searched, in addition to dataHome.

A list of preference ordered directories relative to which data files should be searched, in addition to dataHome.

Should be considered read-only.

Corresponds to XDG_DATA_DIRS.

Attributes

def dataHome: Path

A directory relative to which user-specific data files should be written.

A directory relative to which user-specific data files should be written.

Should be considered read-writable.

Corresponds to XDG_DATA_HOME.

Attributes

def runtime: Path

A directory in which to read and write user-specific runtime files, such as sockets and small temporary files.

A directory in which to read and write user-specific runtime files, such as sockets and small temporary files.

Should be considered read-writable.

Corresponds to XDG_RUNTIME_DIR, with a fallback to ~/.run

Attributes