MCPcopy Create free account
hub / github.com/aboutcode-org/scancode-toolkit / full_root_path

Method full_root_path

src/commoncode/resource.py:1317–1325  ·  view source on GitHub ↗

Return a fully rooted POSIX path stripped from leading and trailing slash

(self)

Source from the content-addressed store, hash-verified

1315
1316 @property
1317 def full_root_path(self):
1318 """
1319 Return a fully rooted POSIX path stripped from leading and trailing slash
1320 """
1321 location = self.location
1322 if location:
1323 return clean_path(as_posixpath(self.location))
1324 else:
1325 return self.path
1326
1327 @property
1328 def strip_root_path(self):

Callers

nothing calls this directly

Calls 2

as_posixpathFunction · 0.90
clean_pathFunction · 0.85

Tested by

no test coverage detected