コード例 #1
0
        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());
        }
コード例 #2
0
        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);
                }
            }
        }