# Dir

Given a string containing a path to a file, this function will return the name of the directory.

## Supported options for Zend_Filter_Dir

There are no additional options for `Zend_Filter_Dir`.

## Basic usage

A basic example of usage is below:

    $filter = new Zend_Filter_Dir();

    print $filter->filter('/etc/passwd');

This returns "`/etc`".

    $filter = new Zend_Filter_Dir();

    print $filter->filter('C:/Temp/x');

This returns "`C:/Temp`".