def _get_res(self, profile_name):
        log.debug("searching for RES")

        res_file = "chrome-extension_kbmfpngjjgdllneeigpgjifpgocmfgmb_0.localstorage"

        if self.os == 'linux':
            res_folder = self._expand("~/.config/chromium/{}/Local Storage/".format(profile_name))

        elif self.os == 'windows':
            if platform.release() == "XP":
                log.error("Unsupported OS (Windows XP). Returning None")
                return None

            # todo: Check if it's possible for folder to be in %APPDATA% instead
            res_folder = self._expand("%LOCALAPPDATA%\\Chromium\\User Data\\{}\\Local Storage\\".format(profile_name))

        elif self.os == "darwin":
            res_folder = self._expand("~/Library/Application Support/Chromium/{}/".format(profile_name))

        else:
            log.error("Unsupported OS. Returning None")
            return None

        log.debug("res_folder set to : {}".format(res_folder))

        if not os.path.exists(res_folder):
            log.error("Selected folder does not exist")
            return None

        try:
            full_path = os.path.join(res_folder, res_file)
            log.debug("Full path set to {}".format(full_path))

            if os.path.exists(full_path):
                log.debug("Full path exists")
                return full_path
            else:
                log.warn("Full path does not exist. RES Not installed?")
                return None

        except __HOLE__:
            log.error("Joining failed for {} and {}".format(res_folder, res_file))
            return None
        except Exception as e:
            log.exception(e)
dataset/ETHPy150Open Nikola-K/RESTool/RESTool/browsers/chromium.py/Chromium._get_res