public static bool IsPathRooted(string path) { Contract.Requires(path != null); if (string.IsNullOrEmpty(path)) return false; return !string.IsNullOrEmpty(PathInfo.Parse(path).Root); }