diff options
Diffstat (limited to 'conversion/CanConvert.java')
-rw-r--r-- | conversion/CanConvert.java | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/conversion/CanConvert.java b/conversion/CanConvert.java new file mode 100644 index 0000000..4fe5e84 --- /dev/null +++ b/conversion/CanConvert.java @@ -0,0 +1,20 @@ +package scruf.conversion; + +import java.io.*; + +public class CanConvert { + private File htmlFile; + private long modified1, modified2; + public boolean check(File file) { + htmlFile = new File(file.getAbsolutePath()+".html"); + modified1 = file.lastModified(); + modified2 = htmlFile.lastModified(); + if(modified1 > modified2) { + // should convert. + return true; + }else { + // should not convert. + return false; + } + } +}
\ No newline at end of file |