public override void Export(string rootPath)
{
string fullPath = System.IO.Path.Combine(rootPath, Path);
if (File.Exists(fullPath)) {
bool confirmed = PackageViewModel.UIServices.Confirm(
String.Format(CultureInfo.CurrentCulture, Resources.ConfirmToReplaceFile, fullPath)
);
if (!confirmed) {
return;
}
}
using (var stream = File.Create(fullPath)) {
GetStream().CopyTo(stream);
}
}