Trying to get the files from filepath using java.io.File "File f = new File("//DEV/Test")" in beanshellsampler JMeter configured in Jenkins, when try to get the absolute path, getting only "/Dev/Test". one '/' is missing.
String folderPath = "//Dev/Test";
#oneway
File folder = new File(folderPath);
folder.toAbsolutePath(); //output :: /Dev/Test
#Secondway
Path p1 = Paths.get(foldertoString, new String[0]);
File pathtoFile = p1.toFile();
String[] fn = pathtoFile.list();
// output : path is not correct