MCPcopy Create free account
hub / github.com/diffgram/diffgram / get_blob_file_extension

Function get_blob_file_extension

shared/url_generation.py:25–29  ·  view source on GitHub ↗
(blob_path: str)

Source from the content-addressed store, hash-verified

23
24
25def get_blob_file_extension(blob_path: str) -> str:
26 splitted = blob_path.split('.')
27 if len(splitted) == 1:
28 return None
29 return splitted[len(splitted) - 1]
30
31
32def get_blob_file_name(blob_path: str) -> str:

Callers 1

Calls 1

splitMethod · 0.80

Tested by

no test coverage detected