add function to list file paths in a directory.