rxn.utilities.files.is_path_creatable

rxn.utilities.files.is_path_creatable(pathname)[source]

True if the current user has sufficient permissions to create the passed pathname; False otherwise.

Copied from https://stackoverflow.com/a/34102855. More details there.

Parameters

pathname (Union[str, PathLike]) –

Return type

bool