Exemple #1
0
 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()));
 }
Exemple #2
0
 public IReadOnlyList <DriveInfo> GetMountedDrives() =>
 IoDriveInfo
 .GetDrives()
 .Select(CreateFrom)
 .WhereNotNull()
 .ToArray();