download_file#

ansys.meshing.prime.examples.download_file(filename, *directory, destination=None, force=False)#

Download a file from PyAnsys examples Github repo

Parameters:
filename: str

Name of the file to download

destination: Optional[str]

Optional destination to download the directory to

force: bool

Flag to force download even if the file exists in cache

directory: tuple[str]

Path under the PyAnsys Github examples repo

Returns:
Tuple[str, str]

Tuple containing filepath to be used and the local filepath of the downloaded directory The two are different in case of containers.