Nexus.Client.Util.FileUtil.IsValidPath C# (CSharp) Method

IsValidPath() public static method

Determines if the given path is valid.
public static IsValidPath ( string p_strPath ) : bool
p_strPath string The path to examine.
return bool
		public static bool IsValidPath(string p_strPath)
		{
			if (String.IsNullOrEmpty(p_strPath))
				return false;
			else if ((p_strPath.Length >= 260) || (p_strPath.LastIndexOf(@"\") >= 247))
				return false;
			else
				return !ContainsInvalidPathChars(p_strPath);
		}