private Stack <string> InitialiseCollectionOfDirectoriesToBeProcessed(string rootDirectory) { Stack <string> dirs = new Stack <string>(); if (!_iOHelper.DirectoryExists(rootDirectory)) { throw new ArgumentException($"The directory '{rootDirectory}' does not exist."); } dirs.Push(rootDirectory); return(dirs); }