Answers for "check if file exists groovy"

1

groovy check if file exists

def filePath = "/tmp/file.json"

def file = new File(filePath)

assert file.exists() : "file not found"
Posted by: Guest on January-26-2021

Browse Popular Code Answers by Language