Fileop

object Fileop

Properties

Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
fun checkParent(targetFile: File): Boolean
Link copied to clipboard
fun combinePaths(dir: File, path: String): String
fun combinePaths(dirPath: String, path: String): String
Link copied to clipboard
fun copyFile(ff: File, tf: File)
Link copied to clipboard
fun copyInputStreamToFile(inputStream: InputStream, file: File)
Link copied to clipboard
fun createTempFile(fileName: String): File
Link copied to clipboard
fun delete(file: File)
Link copied to clipboard
Link copied to clipboard
fun fileExists(file: File?): Boolean
Link copied to clipboard
Link copied to clipboard
fun getExtension(fileName: String): String
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun isFileOneOfExtensions(file: File, extsToTry: String): Boolean
Link copied to clipboard
fun loadProps(fileName: String): Properties
Link copied to clipboard
fun mkdirs(path: File)
Link copied to clipboard
fun moveFile(ff: File, tf: File)
Link copied to clipboard
fun readLines(file: File): List<String>
Link copied to clipboard
fun readTextFile(filePath: String): String
Link copied to clipboard
Link copied to clipboard
fun touch(file: File)
Link copied to clipboard
fun write(strs: Array<String>, file: File)
fun write(str: String, file: File)
fun write(strs: List<String>, file: File)