KFileUtil

class KFileUtil

Functions

Link copied to clipboard
open fun copyFile(srcFile: File, destFile: File): Boolean
open fun copyFile(srcFilePath: String, destFilePath: String): Boolean
复制 src 文件到 dest 文件。
Link copied to clipboard
open fun copyOrMoveFile(srcFile: File, destFile: File, isMove: Boolean): Boolean
复制或者移动 src 文件为 dest 文件。
Link copied to clipboard
open fun deleteFile(file: File): Boolean
删除指定文件。
Link copied to clipboard
open fun getName(filename: String): String
Link copied to clipboard
open fun writeStream2File(file: File, inputStream: InputStream): Boolean
InputStream 写入 File 中。
Link copied to clipboard
open fun writeStream2Stream(inputStream: InputStream, os: OutputStream): Boolean
InputStream 写入 OutputStream 中。