Returns a list of (date, dir) in which snapshopts are present

def list_snapshots_days(path, cam_id):
    """Returns a list of (date, dir) in which snapshopts are present"""
    screenshoots_path = path + "/" + str(cam_id)
    if os.path.exists(screenshoots_path):
        days = []
        for day_dir in os.listdir(screenshoots_path):
            date = datetime.datetime.strptime(day_dir, "%d%m%Y").strftime('%d/%m/%y')
            days.append((date, day_dir))
        return days
    else:
        return []