Pydantic · Type Alias
FilePath
FilePath validates that a value points to an existing file. A valid value becomes a pathlib.Path object; directories and missing paths fail validation.
Last updated
Syntax
class Model(BaseModel):
file: FilePathIn-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.
SubscribeRelated
DirectoryPathNewPathSocketPathPathType