diff options
-rw-r--r-- | xbmc/addons/FilesystemInstaller.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/xbmc/addons/FilesystemInstaller.cpp b/xbmc/addons/FilesystemInstaller.cpp index db3f0ac225..3483727b99 100644 --- a/xbmc/addons/FilesystemInstaller.cpp +++ b/xbmc/addons/FilesystemInstaller.cpp @@ -40,6 +40,9 @@ bool CFilesystemInstaller::InstallToFilesystem(const std::string& archive, const auto newAddonData = URIUtils::AddFileToFolder(m_tempFolder, StringUtils::CreateUUID()); auto oldAddonData = URIUtils::AddFileToFolder(m_tempFolder, StringUtils::CreateUUID()); + if (!CDirectory::Create(newAddonData)) + return false; + if (!UnpackArchive(archive, newAddonData)) { CLog::Log(LOGERROR, "Failed to unpack archive '%s' to '%s'", archive.c_str(), newAddonData.c_str()); |