check_and_download_file#

ansys.aedt.core.generic.file_utils.check_and_download_file(remote_path: str | Path, overwrite: bool = True) str#

Check if a file is remote. Download it or return the path.

Parameters:
remote_pathstr or pathlib.Path

Path to the remote file.

overwritebool, optional

Whether to overwrite the file if it already exists locally. The default is True.

Returns:
str

Path to the remote file.

Examples

>>> from ansys.aedt.core.generic.file_utils import check_and_download_file
>>> check_and_download_file(r"C:\Projects\Motor\meshstats.ms")