FileWatcher debugging.

This commit is contained in:
didfet
2015-03-12 23:46:51 +01:00
parent 708c05d931
commit 797f6f41bb
3 changed files with 59 additions and 42 deletions

View File

@@ -23,7 +23,7 @@ import java.io.RandomAccessFile;
public class FileState {
private File file;
private String filePath;
private String directory;
private long lastModified;
private long size;
private boolean deleted = false;
@@ -37,7 +37,7 @@ public class FileState {
public FileState(File file) throws IOException {
this.file = file;
filePath = file.getCanonicalPath();
directory = file.getCanonicalFile().getParent();
fileName = file.getName();
randomAccessFile = new RandomAccessFile(file, "r");
lastModified = file.lastModified();
@@ -56,8 +56,8 @@ public class FileState {
return size;
}
public String getFilePath() {
return filePath;
public String getDirectory() {
return directory;
}
public boolean isDeleted() {