Ejemplo n.º 1
0
 /// <summary>
 /// Gets the network shares.
 /// </summary>
 /// <param name="path">The path.</param>
 /// <returns>IEnumerable{FileSystemEntryInfo}.</returns>
 private IEnumerable <FileSystemEntryInfo> GetNetworkShares(string path)
 {
     return(_networkManager.GetNetworkShares(path).Where(s => s.ShareType == NetworkShareType.Disk).Select(c => new FileSystemEntryInfo
     {
         Name = c.Name,
         Path = Path.Combine(path, c.Name),
         Type = FileSystemEntryType.NetworkShare
     }));
 }