BrowserFile#

class omni.kit.browser.folder.core.BrowserFile(url: str, thumbnail: str | None = None)#

Bases: object

Represents a single file. :param url: file url. :type url: str :param thumbnail: thumbnail url of file. Default is None. :type thumbnail: Optional[str]

Methods

__init__(url[, thumbnail])

equals(other)

Check if two file objects are same.

get_default_thumbnail_url()

Get default thumbnail url.

set_thumbnail(thumbnail_url)

Check and set thumbnail.

Attributes

thumbnail

url

__init__(url: str, thumbnail: str | None = None)#
equals(
other: BrowserFile,
) bool#

Check if two file objects are same. Returns True means same otherwise False.

get_default_thumbnail_url() str#

Get default thumbnail url.

set_thumbnail(thumbnail_url: str) bool#

Check and set thumbnail. :param thumbnail: Url of thumbnail. :type thumbnail: str

Return True if the thumbnail belongs to this file, otherwise False.