wiithon.fst.tree module

class wiithon.fst.tree.FST[source]

Bases: object

classmethod read(stream, offset)[source]
Parameters:
Return type:

FST

write(stream)[source]

Write this FST to a binary stream. Converts the tree back to flat raw nodes + string table. :type stream: BinaryIO :param stream: Binary stream to write to.

Return type:

None

Parameters:

stream (BinaryIO)

count_files()[source]
Return type:

int

find_node(path)[source]

Finds a node by its path (string or list of strings)

Return type:

FSTNode | None