delete files
This commit is contained in:
@@ -107,6 +107,17 @@ fun bitmapToFile(bitmap: Bitmap?, filePath: String): Boolean {
|
||||
return true
|
||||
}
|
||||
|
||||
fun deleteCompressVideoFile(path: String?) {
|
||||
val file = File(path)
|
||||
val files = file.listFiles()
|
||||
for (f in files) {
|
||||
// /storage/emulated/0/Movies/compress_video_20210202121826.mp4
|
||||
if (f.toString().contains("compress_video")) {
|
||||
f.delete()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
//获取压缩后的视频路径
|
||||
fun getCompressVideoPath(): String {
|
||||
|
||||
Reference in New Issue
Block a user