If i am understanding the question correctly, you want to set the skipfolders variable as a parameter.
As it is you have declared:
boolean skipfolders = false;
So the else is never reached as mentioned by user daggett in the question comment.
If you do something like this instead:
start(true) or start(false)
def start(boolean input){
boolean skipfolders = input;
...
}
Then you can reach the else statement depending on your input.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…