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

Method root_path

scapy/layers/smbserver.py:807–816  ·  view source on GitHub ↗

Return the root path of the current tree

(self)

Source from the content-addressed store, hash-verified

805 return self.current_trees[self.smb_header.TID]
806
807 def root_path(self):
808 """
809 Return the root path of the current tree
810 """
811 curtree = self.current_tree()
812 try:
813 share_path = next(x.path for x in self.shares if x._name == curtree.lower())
814 except StopIteration:
815 return None
816 return pathlib.Path(share_path).resolve()
817
818 @ATMT.state()
819 def SERVING(self):

Callers 2

lookup_fileMethod · 0.95
lookup_folderMethod · 0.95

Calls 2

current_treeMethod · 0.95
resolveMethod · 0.45

Tested by

no test coverage detected