public HierarchyToFolder(string targetFolder) { if (targetFolder.IndexOfAny(Path.GetInvalidPathChars()) != -1) throw new ArgumentException("Invalid path supplied."); _folder = targetFolder; }