synhershko/NAppUpdate — pull request #16 by stebueh (2012-05-09 11:43:58+00:00)
Title: create subdirectories if necessary when backing up files

UpdateFeed example:

```xml

```

FileUpdateTask.Execute tries to do a backup if the destination file already exists, but does not create subdirectories to the backup folder if needed; therefore, a DirectoryNotFoundException is thrown:

System.IO.DirectoryNotFoundException: Could not find a part of the path 'C:\work\myproject\Backup\subdirectory\localfile.dll'.
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.File.InternalCopy(String sourceFileName, String destFileName, Boolean overwrite)
at System.IO.File.Copy(String sourceFileName, String destFileName)
at NAppUpdate.Framework.Tasks.FileUpdateTask.Execute()
at NAppUpdate.Framework.UpdateManager.ApplyUpdates(Boolean relaunchApplication)
at aviita.CAF.client.util.AppUpdater.CheckForUpdates(AppUpdaterMode updaterMode)

suggested change creates subdirectories in the backup folder if necessary.