usdmanager.file_status module

class usdmanager.file_status.FileStatus(url=None, update=True, truncated=False)[source]

Bases: object

File status cache class allowing overriding with additional statuses for custom integration of things like a revision control system.

FILE_NEW = 0
FILE_NOT_WRITABLE = 1
FILE_TRUNCATED = 4
FILE_WRITABLE = 2
icon

Get an icon to display representing the file’s status.

Returns:Icon (may be blank)
Rtype:QIcon
text

Get a status string to display for the file.

Returns:File status (may be an empty string)
Rtype:str
updateFileStatus(truncated=False)[source]

Cache the status of a file.

Parameters:
truncated : bool

If the file was truncated on read, and therefore should never be edited.

writable

Get if the file is writable.

Returns:If the file is writable
Rtype:bool