Skip to main content

File.digest

File.digest: str
Digest of the file, using the build tool’s configured digest algorithm, hex-encoded.

File.file

File.file: None | str

File.length

File.length: int
Length of the file in bytes.

File.name

File.name: str
identifier indicating the nature of the file (e.g., “stdout”, “stderr”)

File.path_prefix

File.path_prefix: list[str]
A sequence of prefixes to apply to the file name to construct a full path. In most but not all cases, there will be 3 entries:
  1. A root output directory, eg “bazel-out”
  2. A configuration mnemonic, eg “k8-fastbuild”
  3. An output category, eg “genfiles”