Revert "Fixing issue with last access time"
This reverts commit a495f5a21c8833bab9fb9b2bd60d78419c152d08.
diff --git a/src/com/google/enterprise/adaptor/fs/FsAdaptor.java b/src/com/google/enterprise/adaptor/fs/FsAdaptor.java
index 7cf0cda..60343f9 100644
--- a/src/com/google/enterprise/adaptor/fs/FsAdaptor.java
+++ b/src/com/google/enterprise/adaptor/fs/FsAdaptor.java
@@ -516,16 +516,7 @@
}
final boolean docIsDirectory = attrs.isDirectory();
-
- // It is possible that BasicFileAttribtues.lastAccessTime uses a cached
- // version of the last access time so it's really not ideal to use with
- // files since the adaptor attempts to protect the last access time for
- // files from changing. Additionally, delegate.getLastAccessTime has the
- // limitation that it only works for files. So for folders use
- // BasicFileAttribtues.lastAccessTime and for files use
- // delegate.getLastAccessTime.
- final FileTime lastAccessTime = docIsDirectory ?
- attrs.lastAccessTime() : delegate.getLastAccessTime(doc);
+ final FileTime lastAccessTime = delegate.getLastAccessTime(doc);
if (!docIsDirectory) {
if (lastAccessTimeFilter.excluded(lastAccessTime)) {