in ideaSupport/src/main/scala/org/jetbrains/sbtidea/download/cachesCleanup/FileUtils.scala [65:73]
def getDirectorySize(directory: Path): Long = {
try {
io.FileUtils.sizeOfDirectory(directory.toFile)
} catch {
case _: java.io.FileNotFoundException => 0L // Handle "mock" directories that don't exist
case _: java.io.UncheckedIOException => 0L // Handle "mock" directories that don't exist
case _: Exception => 0L // Handle any other exceptions
}
}