fixed filtering for files with no extension, file retrieval still not working for recursive method calls