def is_in_folder(self, base_path, directory):
        return op.normpath(directory).startswith(base_path)
Verify if `directory` is in `base_path` folder
dataset/ETHPy150Open syrusakbary/Flask-SuperAdmin/flask_superadmin/contrib/fileadmin.py/FileAdmin.is_in_folder