MCPcopy Create free account
hub / github.com/modelscope/modelscope / is_relative_path

Function is_relative_path

modelscope/utils/file_utils.py:424–429  ·  view source on GitHub ↗

Check if a given string is a relative path.

(url_or_filename: str)

Source from the content-addressed store, hash-verified

422
423
424def is_relative_path(url_or_filename: str) -> bool:
425 """
426 Check if a given string is a relative path.
427 """
428 return urlparse(
429 url_or_filename).scheme == '' and not os.path.isabs(url_or_filename)

Callers 7

loadMethod · 0.90
_download_msFunction · 0.90
load_datasetMethod · 0.90
_resolve_patternFunction · 0.90
_downloadMethod · 0.90
_downloadMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…