}
return false;
}
-
+ /**
+ * updates internal record of file state when caller has intentionally
+ * modified subject. (ignores locked-state of subject)
+ */
public void setState() {
if (subject!=null) {
- lastStat = getStat(subject);
- exists = subject.exists();
- waslocked = checkLock();
+ if (exists = subject.exists()) {
+ lastStat = getStat(subject);
+ waslocked = false;
+ }
}
}