path_utilities#

Offer tools similar to os.path but taking the os of the server into account to create path.

ansys.dpf.core.path_utilities.join(*args, **kwargs)#

Join two strings to form a path, following the server architecture. Using a server version below 3.0, please ensure that the python client and the server’s os are similar before using this method.

Parameters:
  • args (str, os.PathLike, LegacyGrpcServer) – Path to join and optionally a server.

  • kwargs (LegacyGrpcServer) – server=.

  • server (Server) – Specific server to use.

Returns:

concatenated_file_path – left_path + right_path concatenated into a single string value.

Return type:

str