Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

# FileFilter

` public interface FileFilter `   
` `

|---|
| java.io.FileFilter |

<br />

*** ** * ** ***

A filter for abstract pathnames.

Instances of this interface may be passed to the `` `https://developer.android.com/reference/java/io/File#listFiles(java.io.FileFilter)` `` method of the `` `https://developer.android.com/reference/java/io/File` `` class.

## Summary

| ### Public methods ||
|---|---|
| ` abstract boolean` | ` https://developer.android.com/reference/java/io/FileFilter#accept(java.io.File)(https://developer.android.com/reference/java/io/File pathname) ` Tests whether or not the specified abstract pathname should be included in a pathname list. |

## Public methods

### accept

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public abstract boolean accept (File pathname)
```

Tests whether or not the specified abstract pathname should be included in a pathname list.

<br />

| Parameters ||
|---|---|
| `pathname` | `File`: The abstract pathname to be tested <br /> |

| Returns ||
|---|---|
| `boolean` | `true` if and only if `pathname` should be included <br /> |