make_file_url_if_possible#

omni.client.make_file_url_if_possible(absolute_local_path: str) str#
This function is a wrapper of omni.client.make_file_url to only convert path to file url when the followings satisfy:
  1. Path must be absolute local path.

  2. Path is not an URL.

Parameters:

absolute_local_path (str) – Absolute local path to convert.

Returns:

File URL if conversion possible, otherwise original path.

Return type:

str