cobs_index.DocumentList

class DocumentList

List of DocumentEntry objects for indexing

__init__(*args, **kwargs)

Overloaded function.

  1. __init__(self: cobs_index.DocumentList) -> None

default constructor, constructs an empty list.

  1. __init__(self: cobs_index.DocumentList, root: str, filter: cobs_index.FileType = FileType.Any) -> None

construct and add path recursively.

Methods

__init__(*args, **kwargs)

Overloaded function.

add(self, path)

identify and add new file to DocumentList

add_recursive(self, path[, filter])

identify and add new file to DocumentList

size(self)

return number of DocumentEntry in list

sort_by_path(self)

sort entries by path

sort_by_size(self)

sort entries by size