Return the directory part of the path name. Note that directory("/bla/bla/") is "/bla/bla" and NOT "/bla". However, directory("/bla/bla") is "/bla" as we expect!
Referenced by FX::FXFileList::getDirectory().