Nexus.Client.Util.FileUtil.IsValidPath C# (CSharp) 메소드

IsValidPath() 공개 정적인 메소드

Determines if the given path is valid.
public static IsValidPath ( string p_strPath ) : bool
p_strPath string The path to examine.
리턴 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);
		}