check empty line at root file handling
This commit is contained in:
parent
0dcc77cdc2
commit
fc75b4c7d5
1 changed files with 1 additions and 1 deletions
|
@ -104,7 +104,7 @@ class RootHelpers {
|
||||||
override fun commandCompleted(id: Int, exitcode: Int) {
|
override fun commandCompleted(id: Int, exitcode: Int) {
|
||||||
files.forEachIndexed { index, fileDirItem ->
|
files.forEachIndexed { index, fileDirItem ->
|
||||||
var line = lines[index]
|
var line = lines[index]
|
||||||
if (line != "0") {
|
if (line.isNotEmpty() && line != "0") {
|
||||||
line = line.substring(fileDirItem.path.length).trim()
|
line = line.substring(fileDirItem.path.length).trim()
|
||||||
val size = line.split(" ")[0]
|
val size = line.split(" ")[0]
|
||||||
if (size.areDigitsOnly()) {
|
if (size.areDigitsOnly()) {
|
||||||
|
|
Loading…
Reference in a new issue