8. PathlibPosixPath#

class PathlibPosixPath: PathlibPath#
static new(...)#

Create a new Path object

Parameters:

vararg (str or PathlibPath) – # List of string and Path objects

Return type:

PathlibPosixPath

static stdpath(what, ...)#

Shorthand to vim.fn.stdpath and specify child path in later args.

Mason bin path: PosixPath.stdpath(“data”, “mason”, “bin”) or PosixPath.stdpath(“data”, “mason/bin”)

Parameters:
  • what (str) – # See :h stdpath for information

  • vararg (str or PathlibPath) – # child path after the result of stdpath

Return type:

PathlibPosixPath

static from_uri(uri)#

Parse a uri and return its path. Protocol is saved at self._uri_protocol.

Parameters:

uri (str)

is_absolute()#

Returns whether registered path is absolute

Return type:

boolean

is_hidden()#

Return whether the file is treated as a _hidden_ file.

Posix: basename starts with ..

Return type:

boolean