check_if_path_exists#
- ansys.aedt.core.generic.file_utils.check_if_path_exists(path: str | Path) bool#
Check whether a path exists on a local or on a remote machine (for remote sessions only).
- Parameters:
- path
strorpathlib.Path Local or remote path to check.
- path
- Returns:
- bool
Truewhen exist,Falsewhen fails.
Examples
>>> from ansys.aedt.core.generic.file_utils import check_if_path_exists >>> check_if_path_exists(r"C:\Projects\Motor\test.aedt")