filenames function

Filenames from paths