rxn.utilities.files.is_path_exists_or_creatable
- rxn.utilities.files.is_path_exists_or_creatable(pathname)[source]
True if the passed pathname is a valid pathname for the current OS _and_ either currently exists or is hypothetically creatable; False otherwise.
This function is guaranteed to _never_ raise exceptions.
Copied from https://stackoverflow.com/a/34102855. More details there.
- Parameters
pathname (
Union
[str
,PathLike
]) –- Return type
bool