Paperwork function for processing a filepath