I am creating a program that will grab files from a Result Directory (Original Folder) and move those files to a Working Directory (Another Folder). Here the file's name is being changed when the file is moved from one directory to another. Before I move them, I need to check that the Working Directory does not contain that file I am trying to move already. Since the file name is being changed, I need something that will check if the file exists already based on the content inside of the file.
Let's say I have:
FilesRD - (The files in the Original Folder/Result Directory)
FilesWD - (The files in the Other Folder/Working Directory)
and the files inside of those directories will look like this...
Before (In Result Directoy):
Log_123.csv
After (In Working Directory):
Log_123_2015_24_6.csv