make app ignore generated files that are 0 length
This commit is contained in:
parent
a7de18494a
commit
6cd3688767
1 changed files with 4 additions and 1 deletions
|
|
@ -110,7 +110,10 @@ object FileUtil {
|
||||||
if (it.isDirectory && it.absolutePath == originDir.absolutePath) return@forEach
|
if (it.isDirectory && it.absolutePath == originDir.absolutePath) return@forEach
|
||||||
var destFile: DocumentFile
|
var destFile: DocumentFile
|
||||||
try {
|
try {
|
||||||
if (it.name.matches("(^config.*.\\.txt\$)|(rList)|(.*.part-Frag.*)|(.*.live_chat)|(.*.ytdl)".toRegex())){
|
if (
|
||||||
|
it.name.matches("(^config.*.\\.txt\$)|(rList)|(.*.part-Frag.*)|(.*.live_chat)|(.*.ytdl)".toRegex())
|
||||||
|
|| it.length() == 0L
|
||||||
|
){
|
||||||
return@forEach
|
return@forEach
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue