Removed this - the original coding was bad. Now it's using the os module to concatenate the directory path and filenames.