9. PathlibWindowsPath#
- class PathlibWindowsPath: PathlibPath#
- static new(...)#
Create a new Path object
- Parameters:
vararg (
str or PathlibPath
) – # List of string and Path objects- Return type:
- static stdpath(what, ...)#
Shorthand to vim.fn.stdpath and specify child path in later args.
Mason bin path: WindowsPath.stdpath(“data”, “mason”, “bin”) or WindowsPath.stdpath(“data”, “mason/bin”)
- Parameters:
what (
str
) – # See :h stdpath for informationvararg (
str or PathlibPath
) – # child path after the result of stdpath
- Return type:
- 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
Return whether the file is treated as a _hidden_ file.
Posix: basename starts with ., Windows: calls GetFileAttributesA.
- Return type:
boolean