/// <summary> /// Gets the metadata of a specified sub path in this resource. /// <remarks> /// Since it can be difficult to guess which field is filled or not in a <see cref="TreeEntry"/>, /// we suggest you to use <see cref="GetSrcEntry"/> method instead of that one, /// except if you really want to retrieve the raw model as returned by BitBucket. /// </remarks> /// </summary> /// <param name="subPath">The path to the file or directory, or null to retrieve the metadata of the root of this resource.</param> public async Task <TreeEntry> GetTreeEntryAsync(string subPath = null) { return(await RepositoriesEndPoint.GetTreeEntryAsync(SrcPath.Value, subPath)); }