I am trying to create a directory inside the folllowing path /var/www/downloads/ with this String name organization.id but I am getting a false as output.
File filePath = new java.io.File("/var/www/downloads/" + organization.id).mkdir();
String test = filePath.toString();
println("--> Path " + test);
boolean.mkdir()returnsbooleanbut you are storing it inFile. Another confusing part is: why do you havejava.io.Filein your code? You already haveFile filePathso it looks like you addedjava.io.Fileorjava.io.*to your imports. DoesFiletype offilePathnot come fromjava.iopackage?