diff --git a/src/main/java/com/google/devtools/build/lib/windows/WindowsFileSystem.java b/src/main/java/com/google/devtools/build/lib/windows/WindowsFileSystem.java index 30afecc1c2415f..bdabeacc8d1d9b 100644 --- a/src/main/java/com/google/devtools/build/lib/windows/WindowsFileSystem.java +++ b/src/main/java/com/google/devtools/build/lib/windows/WindowsFileSystem.java @@ -194,7 +194,8 @@ public long getLastModifiedTime() throws IOException { @Override public long getLastChangeTime() { // This is the best we can do with Java NIO... - return attributes.lastModifiedTime().toMillis(); + return Math.max(attributes.lastModifiedTime().toMillis(), + attributes.creationTime().toMillis()); } @Override