So the issue I'm having is if a xml file contains "ONE" then it should move to the credit directory, else move to debit directory. Here is my current solution:
private void SplitAndMoveCreditCamts(FileInfo f)
{
if (v.Elements().Contains(x => x.Value == "ONE"))
WriteToDirectory(v, "ONE\\");
else
WriteToDirectory(v, "TWO\\");
}
It does move the files to just the TWO directory. This means that the "WriteToDirectory" method is working, but ignores the "ONE" condition. I believe the error lies there.