def _get_dir_url(self, endpoint, path, **kwargs):
        if not path:
            return url_for(endpoint)
        else:
            if self._on_windows:
                path = path.replace('\\', '/')

            kwargs['path'] = path

            return url_for(endpoint, **kwargs)
Utility method for defining enums
dataset/ETHPy150Open syrusakbary/Flask-SuperAdmin/flask_superadmin/contrib/fileadmin.py/FileAdmin._get_dir_url--crossover with--dataset/ETHPy150Open hazelcast/hazelcast-python-client/hazelcast/util.py/enum