def do_share(self, args): input_share = args.split() if (len(input_share) > 0): ss_console = ShareSMBConsole(input_share[0]) if (len(input_share) > 1): ss_console.onecmd(' '.join(input_share[1:])) else: ss_console.cmdloop()
def do_smb(self, args): """ smb operations on the share """ ss_console = ShareSMBConsole(self.greeting, self.share) ss_console.cmdloop()