You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The BaseDriver only supports archiving local folders and files.
Please add an override to the AzureStorageDriver with the following:
protected override async Task AddDirectoryToArchiveAsync(ZipArchive zipFile, IDirectory directoryInfo, string root)
{
string entryName = $"{root}{directoryInfo.Name}/";
zipFile.CreateEntry(entryName);
var dirs = await directoryInfo.GetDirectoriesAsync();
foreach (var dir in dirs)
{
await AddDirectoryToArchiveAsync(zipFile, dir, entryName);
}
var files = await directoryInfo.GetFilesAsync(null);
foreach (var file in files)
{
var filePath = Path.GetTempFileName();
File.WriteAllBytes(filePath, await AzureStorageAPI.FileBytesAsync(file.FullName));
zipFile.CreateEntryFromFile(filePath, entryName + file.Name);
}
}
This will allow us to retrieve files from Azure Instead and write to a temp directory. This currently does not exist in the AzureStorageDriver and fails every time you try to archive by directory/folder name.
The text was updated successfully, but these errors were encountered:
The BaseDriver only supports archiving local folders and files.
Please add an override to the AzureStorageDriver with the following:
This will allow us to retrieve files from Azure Instead and write to a temp directory. This currently does not exist in the AzureStorageDriver and fails every time you try to archive by directory/folder name.
The text was updated successfully, but these errors were encountered: