We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f30ecba commit 5c94500Copy full SHA for 5c94500
1 file changed
server/src/main/kotlin/org/ivdnt/galahad/files/GalahadFolder.kt
@@ -12,7 +12,7 @@ abstract class GalahadFolder(
12
val name: String = dir.name
13
14
val lastModified: Long
15
- get() = dir.walkTopDown().map { it.lastModified() }.reduceOrNull { f, g -> f.coerceAtLeast(g) } ?: -1
+ get() = dir.listFiles().maxOfOrNull { it.lastModified() } ?: -1
16
17
val sizeInBytes: Long get() = dir.walkTopDown().filter { it.isFile }.map { it.length() }.sum()
18
}
0 commit comments