How do I remove the directory structure in file name in this function?

Printable View