Thanks to Bernie Deitrick. My code was designed to just look at the file name, not the whole path. I overlooked that.