summaryrefslogtreecommitdiffstats
path: root/conversion/CanConvert.java
blob: 4fe5e84b561dcc137311515da3d0738c30f6206f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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;
	}
    }
}