public string GetBackupFolder() { var accountFolder = string.Format("{0} - {1}", _requestedUri.Scheme, _requestedUri.GetAccountName()); var path = Path.Combine(_configService.PluginConfiguration.BackupToLocalFolder, accountFolder); if (!Directory.Exists(path)) { Directory.CreateDirectory(path); } return(path); }
private static string GetAccountName(StorageCredentials credentials, AzureStorageOrchestrationServiceSettings settings, StorageUri serviceUri, string service) => credentials.AccountName ?? settings.StorageAccountDetails?.AccountName ?? serviceUri.GetAccountName(service) ?? "(unknown)";