此行“boolean skipfolders = false”如何为用户动态传递提供便利 无论是真还是假。
start(true) // here is it pass value dynamically like user,pass parameters
def start(boolean skip){
def store
boolean skipfolders = skip;
def ftpClient = new FTPClient()
ftpClient.connect(server)
ftpClient.login(user,pass)
ftpClient.enterLocalPassiveMode()
FTPFile[] fileslist = ftpClient.listFiles("/")
FTPFile[] folderfileslist = ftpClient.listFiles("/sample")
if(!skipfolders){}
}
提前致谢