[android-components](../../../index.md) / [org.mozilla.telemetry.util](../../index.md) / [FileUtils](../index.md) / [FilenameRegexFilter](index.md) / [accept](./accept.md)

# accept

`open fun accept(dir: `[`File`](http://docs.oracle.com/javase/7/docs/api/java/io/File.html)`, filename: `[`String`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`): `[`Boolean`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) [(source)](https://github.com/mozilla-mobile/android-components/blob/master/components/service/telemetry/src/main/java/org/mozilla/telemetry/util/FileUtils.java#L42)