The path_utilities.py
module#
Summary#
Join two strings to form a path, following the server architecture. |
|
Return path to the server depending on the os. |
Description#
path_utilities.
Offer tools similar to os.path but taking the os of the server into account to create path.
Module detail#
- 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
- path_utilities.to_server_os(path, server=None)#
Return path to the server depending on the os.