adventurous-butcher-54166
02/29/2024, 12:51 PMpulumi.FileAsset
states
FileAsset: The contents of the asset are read from a file on disk.However I only get an object with a path to the file and not its contents. Am I doing something wrong or does it only return the path? https://www.pulumi.com/docs/concepts/assets-archives/
witty-battery-28013
02/29/2024, 3:08 PMwitty-battery-28013
02/29/2024, 3:10 PMadventurous-butcher-54166
02/29/2024, 3:10 PMclass FileAsset(Asset):
"""
A FileAsset is a kind of asset produced from a given path to a file on
the local filesystem.
"""
path: str
def __init__(self, path: Union[str, PathLike]) -> None:
if not isinstance(path, (str, PathLike)):
raise TypeError("FileAsset path must be a string or os.PathLike")
self.path = fspath(path)