In some instances, you may want to create a target folder if it does not already exist. You can use the following plugin to accomplish this task:
//-----start code ----
import java.io.File;
try
{
String path= context.get("fPath"); \\Example: fPath = D:\MMM\Test2\1\Test3
File f = new File(path);
f.mkdirs();
}
catch(Exception e){
System.out.println("Exception"+e);
}
//----- end code-------
Note: fPath is the variable where you have to store the directory path which you want to create.
Comments
0 comments
Article is closed for comments.