public IServerPath CreateSubfolder(IServerPath parentServerPath, string subfolderName) { var workspace = GetWorkspace(); var localParentFolder = workspace.GetLocalItemForServerItem(parentServerPath.AsString()); var subfolderLocalPath = Path.Combine(localParentFolder, subfolderName); var subfolderServerPath = parentServerPath.Subpath(subfolderName); _fileSystemManager.CreateFolder(subfolderLocalPath); workspace.Map(subfolderServerPath.AsString(), subfolderLocalPath); workspace.PendAdd(subfolderLocalPath); workspace.CheckInWithPolicyOverride($"Create folder {subfolderName}", new string[] { subfolderLocalPath }, "This folder was created automatically by the GGP Developer Tool."); _tfsCache.AddFolderToCache(subfolderServerPath.AsString()); return(subfolderServerPath); }