I am trying to check if abcd.png exists inside the flows folder
flows/abcd.png
so in groovy I am doing this
def file = new File("flows/abcd.png").exists()
but it is returning false. When I do ls I can see the file exists inside the flows folder as well. What am I doing wrong? Any help would be appreciated
Also I tried with
"/flows/abcd.png"
".flows/abcd.png"
"./flows/abcd.png"
But it gives false for all the cases