fluentfs.paths.paths.expand_path

fluentfs.paths.paths.expand_path(path: str, expand_user: bool = True, expand_vars: bool = True) str

Maximally expand a path.

The maximally expanded path is the absolute path corresponding to the given path with: * special characters (like ~) expanded * environment variables expanded

Parameters:

path – The given path.

Returns:

The maximally expanded path.