downloadToFolder

suspend fun Attachment.downloadToFolder(path: String): Path

Given a String representing a folder path, download the attachment to a file within it.


suspend fun Attachment.downloadToFolder(path: Path): Path

Given a Path representing a folder, download the attachment to a file within it.


suspend fun Attachment.downloadToFolder(file: File): Path

Given a File representing a folder, download the attachment to a file within it.