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

Method normalize_path

scapy/layers/smbclient.py:1264–1268  ·  view source on GitHub ↗

Normalize path for CIFS usage

(self, path)

Source from the content-addressed store, hash-verified

1262 return pathlib.PureWindowsPath(os.path.normpath(path.as_posix()))
1263
1264 def normalize_path(self, path):
1265 """
1266 Normalize path for CIFS usage
1267 """
1268 return str(self.collapse_path(path)).lstrip("\\")
1269
1270 @CLIUtil.addcommand()
1271 def shares(self):

Callers 7

ps1Method · 0.95
lsMethod · 0.95
_get_fileMethod · 0.95
_send_fileMethod · 0.95
rmMethod · 0.95
watchMethod · 0.95
getsdMethod · 0.95

Calls 1

collapse_pathMethod · 0.95

Tested by

no test coverage detected