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

Method cd

scapy/layers/smbclient.py:1461–1472  ·  view source on GitHub ↗

Change the remote current directory

(self, folder)

Source from the content-addressed store, hash-verified

1459
1460 @CLIUtil.addcommand(spaces=True)
1461 def cd(self, folder):
1462 """
1463 Change the remote current directory
1464 """
1465 if self._require_share():
1466 return
1467 if not folder:
1468 # show mode
1469 return str(self.pwd)
1470 self.pwd /= folder
1471 self.pwd = self.collapse_path(self.pwd)
1472 self.ls_cache.clear()
1473
1474 @CLIUtil.addcomplete(cd)
1475 def cd_complete(self, folder):

Callers

nothing calls this directly

Calls 3

_require_shareMethod · 0.95
collapse_pathMethod · 0.95
clearMethod · 0.45

Tested by

no test coverage detected