IO

object IO

Properties

Link copied to clipboard
Link copied to clipboard
const val USER_AGENT: String

Functions

Link copied to clipboard
fun deleteDirectory(directory: Path, skipParent: Boolean = false)
Link copied to clipboard
fun download(address: String, maxSize: Long = Long.MAX_VALUE): ByteArray
Link copied to clipboard
fun fileTime(path: Path): String
Link copied to clipboard
fun listFiles(path: Path): List<Path>
Link copied to clipboard
fun printBold(msg: Any): <Error class: unknown class>
Link copied to clipboard
fun printError(msg: String)
Link copied to clipboard
fun tempDir(prefix: String = globalAppName): CloseablePath
Link copied to clipboard
fun unzip(sourceStream: InputStream, targetPath: Path): Path
fun unzip(sourceFile: Path, targetPath: Path): Path
Link copied to clipboard
fun zip(destinationFile: Path, sourceDirs: List<Path>)