libb.file_share_session
- class file_share_session(host, password, drive, share)[source]
Bases:
objectContext manager for temporarily mounting a file share.
Mounts share before commands and unmounts on exit.
- Parameters:
Example:
with shell.file_share_session(host, password, 'Z:', 'data'): for cmd in commands: out = shell.run_command(cmd)