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

# assertDirectory

`open static fun assertDirectory(directory: `[`File`](http://docs.oracle.com/javase/7/docs/api/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)