protected override async Task <List <string> > GetFilesForRestore() { var prefix = string.IsNullOrEmpty(_remoteFolderName) ? "" : _remoteFolderName + "/"; var allObjects = await _client.ListAllObjects(prefix, string.Empty, false); return(allObjects.Select(x => x.FullPath).ToList()); }
public override async Task FetchRestorePoints(string path) { path = path.TrimEnd('/'); var objects = await _client.ListAllObjects(path + "/", "/", true); var folders = objects.Select(x => x.FullPath).ToList(); if (folders.Count == 0) { await FetchRestorePointsForPath(path, assertLegacyBackups : true); } else { foreach (var folder in folders) { await FetchRestorePointsForPath(folder, assertLegacyBackups : true); } } }