How do I set the last modified date of a file using TrueVFS? Because accordingly () it should be as simple as
file entry = new TFile ("archive.zip/dir/HälloWörld.txt"); Entry.setLastModified (System.currentTimeMillis ());
but it does not work for files , but if I do the same for folders then it works .
This is what I am using
string NUMBER_FILE = "C: /333/ServerEAR.ear/1.txt"; String newLastModified = "11/12/1999 14:15:16"; SimpleDataformat SDF = New SimpleDateform ("DD / MM / YY HH: mm: SS"); Long new data = sdf.parse (newLastModified) .gettime (); File entry = new TFile (NUMBER_FILE); Boolean Result = Entry .customly modified (newadet);
Although the result is correct, the date I want is not modified
Comments
Post a Comment