Sindbad~EG File Manager

Current Path : /proc/thread-self/root/opt/imunify360/venv/lib/python3.11/site-packages/setuptools/
Upload File :
Current File : //proc/thread-self/root/opt/imunify360/venv/lib/python3.11/site-packages/setuptools/py312compat.py

import sys
import shutil


def shutil_rmtree(path, ignore_errors=False, onexc=None):
    if sys.version_info >= (3, 12):
        return shutil.rmtree(path, ignore_errors, onexc=onexc)

    def _handler(fn, path, excinfo):
        return onexc(fn, path, excinfo[1])

    return shutil.rmtree(path, ignore_errors, onerror=_handler)

Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists