Question
file.modified always returns null
No matter what I do, I always have the modified returned as null. I am trying to get the modified date of two different files, and if the file is older then then server version it replaces the the older one with the new one. (Making something to update all our team scripts instead of me sending out a new JSX file and instructions each time)
here is the super simple code I am using to test though
var myFile = File ("~/Desktop/Test.png")
$.writeln("Is File: " + String(myFile instanceof File))
$.writeln("Exist: " + String(myFile.exists))
$.writeln("modified: " + String(File( myFile).modified));
and my results are
Is File: true
Exist: true
modified: null
any idea why its doesnt think its a file?
