MCPcopy Index your code
hub / github.com/secdev/scapy / collapse_path

Method collapse_path

scapy/layers/smbclient.py:1259–1262  ·  view source on GitHub ↗
(self, path)

Source from the content-addressed store, hash-verified

1257 return True
1258
1259 def collapse_path(self, path):
1260 # the amount of pathlib.wtf you need to do to resolve .. on all platforms
1261 # is ridiculous
1262 return pathlib.PureWindowsPath(os.path.normpath(path.as_posix()))
1263
1264 def normalize_path(self, path):
1265 """

Callers 2

normalize_pathMethod · 0.95
cdMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected