Load the blob from a path like object.
from_path(
cls,
path: PathLike,
*,
encoding: str = 'utf-8',
mime_type: str | None = None,
guess_type: bool = True,
metadata: dict | None = None
) -> Blob| Name | Type | Description |
|---|---|---|
path* | PathLike | Path-like object to file to be read |
encoding | str | Default: 'utf-8'Encoding to use if decoding the bytes into a string |
mime_type | str | None | Default: NoneIf provided, will be set as the MIME type of the data |
guess_type | bool | Default: TrueIf |
metadata | dict | None | Default: NoneMetadata to associate with the |