September 3, 201213 yr I want to get the date created from a file. I see a date modified but not created. How can I do this? return new Date(new File(filePath).lastModified()); Here is the statement Oreste
September 4, 201213 yr Oreste There are methods in the nio (NewInputOutput) classes If you have it installed in your version of Java this will work ( standard in Java 7 ) import java.nio.file.Files import java.nio.file.Paths import java.nio.file.attribute.BasicFileAttributes return Files.readAttributes(Paths.get(fm_file), BasicFileAttributes.class).creationTime() John
September 5, 201213 yr If you are using our ScriptMaster plugin successfully you have Java installed (32-bit) as our plugins are executed in the JVM (Java Virtual Machine).
September 5, 201213 yr Author Oh ok Well the above command doest work for me. I will redownload the Scriptmaster maybe it is an old version
Create an account or sign in to comment