From eb765c974bd454a46cb9a0adef65515cb10cdcd9 Mon Sep 17 00:00:00 2001 From: Rob Weber Date: Fri, 23 Aug 2019 13:40:40 -0500 Subject: [PATCH] make sure the dest folder (backup set root) exists before writing to it --- resources/lib/backup.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/resources/lib/backup.py b/resources/lib/backup.py index e018a3e..0af2a85 100644 --- a/resources/lib/backup.py +++ b/resources/lib/backup.py @@ -386,6 +386,11 @@ class XbmcBackup: utils.log("Source: " + source.root_path) utils.log("Desintation: " + dest.root_path) + + #make sure the dest folder exists - can cause write errors if the full path doesn't exist + if(not dest.exists(dest.root_path)): + dest.mkdir(dest.root_path) + for aFile in fileList: if(not self.progressBar.checkCancel()): utils.log('Writing file: ' + aFile,xbmc.LOGDEBUG)