public override async Task <FileSystemResult> PopulateAsync() { IntDirectories = DriveInfo.GetDrives().Select(a => new LocalDrive(a, FS) { Parent = this }).Cast <DirectoryImplementation>().ToList(); IntDirectories.AddRange(UncPaths.Select(a => new LocalDirectory(new DirectoryInfo(a), FS))); IsPopulated = true; return(await Task.FromResult(new FileSystemResult())); }
public IReadOnlyList <DriveInfo> GetMountedDrives() => IoDriveInfo .GetDrives() .Select(CreateFrom) .WhereNotNull() .ToArray();