1339836 followup. CHeck if destination folder is writable before use.
CLoses lp:1339836 again, thanks François.