Beispiel #1
0
        public override async Task FetchRestorePoints(string path)
        {
            path = path.TrimEnd('/');
            var objects = await _client.ListAllObjectsAsync(string.IsNullOrEmpty(path)? "" : path + "/", "/", listFolders : 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);
                }
            }
        }