Hello, how can i retrieve a the full path from a file in a itemFile, example:
String orig ="c:\\"+fileItem.getName();
String dest = "c:\\"+"file.xml.bak";
File fOrig = new File(orig);
File fDest = new File(dest);
try {
FileUtils.copyFile(fOrig, fDest);
} catch (IOException e) {
e.printStackTrace();
}
in getName i get the name, but a i need the full path, for example C:\test.txt
so i don’t need to put the string “c:\” in the code.
Thanks you.