[android-components](../../index.md) / [org.mozilla.telemetry.util](../index.md) / [FileUtils](index.md) / [assertDirectory](./assert-directory.md)

# assertDirectory

`open static fun assertDirectory(directory: `[`File`](https://developer.android.com/reference/java/io/File.html)`): `[`Unit`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html) [(source)](https://github.com/mozilla-mobile/android-components/blob/master/components/service/telemetry/src/main/java/org/mozilla/telemetry/util/FileUtils.java#L17)