static public eErrorType createDirectory(XboxConsole console, string path) { if (console == null) { return(eErrorType.cNotConnected); } StringBuilder curPath = new StringBuilder(); int index = 0; while (index < path.Length) { char c = path[index]; bool isSep = (c == '\\'); if ((isSep) || (index == path.Length - 1)) { if (index == path.Length - 1) { curPath.Append(c); } try { console.MakeDirectory(curPath.ToString()); } catch { } } curPath.Append(c); index++; } return(eErrorType.c*K); }