Skip to content

Commit 5c94500

Browse files
committed
Check validity based on top level folders
1 parent f30ecba commit 5c94500

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

server/src/main/kotlin/org/ivdnt/galahad/files/GalahadFolder.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ abstract class GalahadFolder(
1212
val name: String = dir.name
1313

1414
val lastModified: Long
15-
get() = dir.walkTopDown().map { it.lastModified() }.reduceOrNull { f, g -> f.coerceAtLeast(g) } ?: -1
15+
get() = dir.listFiles().maxOfOrNull { it.lastModified() } ?: -1
1616

1717
val sizeInBytes: Long get() = dir.walkTopDown().filter { it.isFile }.map { it.length() }.sum()
1818
}

0 commit comments

Comments
 (0)