in src/pydolphinscheduler/resources_plugin/oss.py [0:0]
def get_bucket_file_info(self, path: str):
"""Get file information from the file url, like repository name, user, branch, and file path."""
self.get_index(path, Symbol.SLASH, 3)
result = urlparse(path)
hostname = result.hostname
elements = hostname.split(Symbol.POINT)
self._bucket_file_info = OSSFileInfo(
endpoint=f"{result.scheme}://"
f"{Symbol.POINT.join(str(elements[i]) for i in range(1, len(elements)))}",
bucket=hostname.split(Symbol.POINT)[0],
file_path=result.path[1:],
)