I'm trying to do something rather simple (I think). I have a workflow that moves files into a folder in an archive directory based on the persons name. Sometimes the Names were saved with Spaces, sometimes underscores, sometimes they used a middle initial, sometimes they didnt. So I want to start by seeing if the BEST named folder exists.
So if someone's name on a document is Raymond P. Bradbury, I want to move that document to the folder in /ArchivedWriters/Ray-P-Bradbury/
Someone may have already created a folder named Raymond-P-Bradbury so first I want to try to move the file into there using a conditional to see if the folder "Ray_P_Bradbury" exists in /ArchivedWriters
But the string I have from the document might be "Ray P Bradbury", "Ray-P-Bradbury" or even just "xxxx_bradbury". If "Ray_P_Bradbury" exists as a folder, I want the file in there. If it doesnt, but "Ray P Bradbury" (spaces instead of underscores) - I want the file in there, otherwise I want to create a new folder to archive the Ray Bradbury docs into.
The thing I'm getting stuck at is a test to see if a folder with the optimal naming convention exists at all.