I'm doing a Java application that takes information from several *.tif
files in a directory, but I can not get information from more than one at a time and need to put the specific path of each file. I'm using Paths
for this. If anyone can help me thank you.
Path path = Paths.get("C:\teste2");
BasicFileAttributes attributes = Files.readAttributes(path, BasicFileAttributes.class);
FileTime creationTime = attributes.lastModifiedTime();
long tempo;
tempo = creationTime.toMillis();
SimpleDateFormat sdf = new SimpleDateFormat("HH:mm:ss");
System.out.println(sdf.format(tempo));