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

Method cat

scapy/layers/smbclient.py:1694–1703  ·  view source on GitHub ↗

Print a file

(self, file)

Source from the content-addressed store, hash-verified

1692
1693 @CLIUtil.addcommand(spaces=True, globsupport=True)
1694 def cat(self, file):
1695 """
1696 Print a file
1697 """
1698 if self._require_share():
1699 return
1700 # Write the buffer to buffer
1701 buf = io.BytesIO()
1702 self._get_file(file, buf)
1703 return buf.getvalue()
1704
1705 @CLIUtil.addoutput(cat)
1706 def cat_output(self, result):

Callers

nothing calls this directly

Calls 2

_require_shareMethod · 0.95
_get_fileMethod · 0.95

Tested by

no test coverage detected