/// <summary>
 /// Retrieves the contents of a directory.
 /// </summary>
 public async Task <IEnumerable <TfsSourceControlledItem> > GetItemsAsync()
 {
     return((await VersionControl.GetItemsAsync($"{Item.ServerItem}/*", RecursionType.None).ConfigureAwait(false))
            .Select(item => item.ItemType == ItemType.Folder
                                                     ? new TfsDirectory(item, VersionControl)
                                                     : (TfsSourceControlledItem) new TfsFile(item, VersionControl)));
 }