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
I would try the following function it's far from being perfect:
UPDATE:
Another way is to read out the ByteArray this would solve the Image Problem. But the function still get's slow over time.