Return the root path of the current tree
(self)
| 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): |
no test coverage detected