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
|
||||
var destFile: DocumentFile
|
||||
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
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue