File metadata#

File metadata is the data surface derived from an item’s filesystem reference. It does not parse item content; it reads names, extensions, parent directories, path segments, and path depth from where the item lives.

Terms#

TermMeaning
File metadataAttributes derived from an item’s path or filesystem reference.
FilenameThe basename of the item path.
ExtensionThe suffix used to classify the file’s format, such as .md or .txt.
Parent directoryThe directory immediately containing the item.
Path depthThe number of directory levels between the collection root and the item.

Model#

File metadata belongs to the item because the item’s reference can carry meaning: a file’s name may need to match a field, an extension may need to be allowed, or a collection may require one index file per directory.

This view backs file-system check types. It also feeds raw base inspectors such as file_tree, where file names and paths help profile a base before collections are configured.

Unlike Markdown body text, file metadata is not a codec. It is derived from the reference the base already uses to address the item.

Invariants#

  1. File metadata is derived from references. It does not require reading or parsing the item body.
  2. Path targets are explicit. Checks choose the path slice they inspect: filename, filename with extension, parent directory, or path segments.
  3. It is still a data surface. Checks and inspectors can reason about path attributes alongside structured fields and body text.

See also#