jazzIIIlove
asked on
File aFile = anotherfile.toPath().getParent().resolve(newname).toFile(); to Java 1.6
Hi;
I am trying to convert a Java application which is implemented in Java1.7 to 1.6
This works fine in 1.7
but toPath() is not recognized in 1.6
Any fast solution that is compatible with 1.6?
Regards.
I am trying to convert a Java application which is implemented in Java1.7 to 1.6
This works fine in 1.7
File aFile = anotherfile.toPath().getParent().resolve(newname).toFile()
but toPath() is not recognized in 1.6
Any fast solution that is compatible with 1.6?
Regards.
Why not just File.getParent/File.getPar entFile?
ASKER
because there is one line above:
String newname = simpleDateFormat.format(date)+ anotherFile.getName();
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
:)