upload#
- MapdlGrpc.upload(file_name, progress_bar=True)#
Upload a file to the grpc instance
- Return type:
- file_namestr
Local file to upload.
- progress_barbool, optional
Whether to display a progress bar using
tqdm
. The default isTrue
. This parameter is helpful for showing download progress.
- Returns:
str
Base name of the file uploaded. File can be accessed relative to the mapdl instance with this file name.
Examples
Upload “local_file.inp” while disabling the progress bar
>>> mapdl.upload('local_file.inp', progress_bar=False)