def _listdirs(self, file):
        """ Grabs all the directories in the zip structure
        This is necessary to create the structure before trying
        to extract the file to it. """
        zf = zipfile.ZipFile(file)

        dirs = []

        for name in zf.namelist():
            if name.endswith('/'):
                dirs.append(name)

        dirs.sort()
        return dirs
 Grabs all the directories in the zip structure
        This is necessary to create the structure before trying
        to extract the file to it. 
recipes/Python/252508_File_Unzip/recipe-252508.py