enen92/screensaver.kaster

Solution to recursive folder bugs

Opened this issue · 0 comments

Hi,
I think I've found the issue with recursive folder searching.

I've created "new_path" instead of using "path"

    def __get_images_recursively(self, path):
        folders, files = xbmcvfs.listdir(xbmc.translatePath(path))
        for _file in files:
            self.__append_image(os.path.join(xbmc.translatePath(path), _file))
        if folders:
            for folder in folders:
                new_path = os.path.join(path,folder)
                self.__get_images_recursively(new_path)