directory_hash

directory_hash(directory, files=None, base=None, bits=None, id_generator=None): 

LLM Docstring

Hash the contents of a directory’s files.

  • directory: str

    the directory path

  • files: Iterable[str] | None

    the file names to include (defaults to all)

  • base: int | None

    the string-encoding base

  • bits: int | None

    truncate the digest to this many bytes

  • id_generator: Any

    the id encoding

  • :returns: _

    the directory hash


Feedback

Examples

Templates

Documentation