kaostika Posted September 3, 2012 Posted September 3, 2012 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
john renfrew Posted September 4, 2012 Posted September 4, 2012 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
kaostika Posted September 5, 2012 Author Posted September 5, 2012 Doesn't work for me I dont think I have Java.
wbasham Posted September 5, 2012 Posted September 5, 2012 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).
kaostika Posted September 5, 2012 Author Posted September 5, 2012 Oh ok Well the above command doest work for me. I will redownload the Scriptmaster maybe it is an old version
Recommended Posts
This topic is 4530 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now