using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; namespace RainmeterStudio.Core.Utils { public static class PathHelper { /// /// Validates a path /// /// The path /// True if the path is valid public static bool IsPathValid(string path) { // Check for invalid characters if (Path.GetInvalidPathChars().Intersect(path).Any()) return false; return true; } } }