filterPath() and filterFileList() were simply moved higher up in the file, with zero changes to the actual code (verified by diffing the text)