hfutils.entry.ls
FileItemType
- enum hfutils.entry.ls.FileItemType(value)[source]
Enum class representing different types of list items.
This enumeration defines various file and folder types that can be encountered in a file system or list of items. Each type is associated with a unique integer value.
- Usage:
>>> item_type = FileItemType.FILE >>> print(item_type) FileItemType.FILE >>> print(item_type.value) 1
Valid values are as follows:
- FILE = <FileItemType.FILE: 1>
- FOLDER = <FileItemType.FOLDER: 2>
- IMAGE = <FileItemType.IMAGE: 3>
- ARCHIVE = <FileItemType.ARCHIVE: 4>
- MODEL = <FileItemType.MODEL: 5>
- DATA = <FileItemType.DATA: 6>