fromPath

fun fromPath(path: Path, name: String = path.fileName?.toString() ?: path.toString(), mimeType: String? = null, id: String = UUID.randomUUID().toString(), timestamp: Instant = Instant.now(), description: String = "Asset "): MaterializableAsset

Create a serializable MaterializableAsset from a file system Path.

Returns a PathMaterializableAsset that round-trips via JSON. Note that the referenced file path must remain accessible on disk when materialized or restored.