MCPcopy Create free account
hub / github.com/PierreGode/Ragnar / _extractLastPathComponent

Method _extractLastPathComponent

pager_lib/smb/base.py:2982–2983  ·  view source on GitHub ↗
(self, path)

Source from the content-addressed store, hash-verified

2980 self._pushToArray(messages_history, m)
2981
2982 def _extractLastPathComponent(self, path):
2983 return path.replace('\\', '/').split('/')[-1]
2984
2985 def _pushToArray(self, messages_history, message):
2986 if len(messages_history) > 10:

Callers 2

createCBMethod · 0.95
queryCBMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected