2 * Copyright (C) 2016-2018 Team Kodi
3 * This file is part of Kodi - https://kodi.tv
5 * SPDX-License-Identifier: GPL-2.0-or-later
6 * See LICENSES/README.md for more information.
14 * Responsible for safely unpacking/copying/removing addon files from/to the addon folder.
16 class CFilesystemInstaller
20 CFilesystemInstaller();
23 * @param archive Absolute path to zip file to install.
25 * @return true on success, otherwise false.
27 bool InstallToFilesystem(const std::string
& archive
, const std::string
& addonId
);
29 bool UnInstallFromFilesystem(const std::string
& addonPath
);
32 static bool UnpackArchive(std::string path
, const std::string
& dest
);
34 std::string m_addonFolder
;
35 std::string m_tempFolder
;