[android-components](../../index.md) / [org.mozilla.telemetry.config](../index.md) / [TelemetryConfiguration](index.md) / [setDataDirectory](./set-data-directory.md)

# setDataDirectory

`open fun setDataDirectory(dataDirectory: `[`File`](http://docs.oracle.com/javase/7/docs/api/java/io/File.html)`): `[`TelemetryConfiguration`](index.md) [(source)](https://github.com/mozilla-mobile/android-components/blob/master/components/service/telemetry/src/main/java/org/mozilla/telemetry/config/TelemetryConfiguration.java#L96)

Set the root directory where telemetry components should store data.

