OmniUrl#
- class omni.kit.converter.common.OmniUrl(url: str | Path, list_entry=None)#
Bases:
objectOmniverse Url Helper Class
Methods
__init__(url[, list_entry])Returns url as a OmniUrl()
Returns: Path() object for local file
Returns: Path() object for local file
Returns the status of the url
url_with_name(name)Return a new url with the url path final component changed.
url_with_path(path)Return a new url with the path changed.
url_with_suffix(suffix)Return a url with the file full suffix changed.
Attributes
True if exists; else False
Return path suffix(s) if any.
The final path component, if any.
OmniUrl object
Returns the path
schemeStatus of the url
The final path component, minus its suffix(s).
The final component's last suffix, if any.
Checks if the url path is writeable
- __init__(url: str | Path, list_entry=None)#
Returns url as a OmniUrl()
- get_local_file() Path#
Returns: Path() object for local file
- async get_local_file_async() tuple[Result, Path]#
Returns: Path() object for local file
- sync_stat()#
Returns the status of the url
- url_with_suffix(
- suffix: str,
Return a url with the file full suffix changed. If the url path has no suffix, add given suffix. If the given suffix is an empty string, remove the suffix from the url path.
- property exists#
True if exists; else False
- Type:
Returns
- property full_suffix: str#
Return path suffix(s) if any.
This includes the leading period. For example: ‘.skelanim.usd’
- property name: str#
The final path component, if any.
- property path#
Returns the path
- property stat#
Status of the url
- property stem: str#
The final path component, minus its suffix(s).
- property suffix: str#
The final component’s last suffix, if any.
This includes the leading period. For example: ‘.txt’
- property writeable#
Checks if the url path is writeable