libb.mount_file_share

mount_file_share(host, password, drive, share, unmount=False)[source]

Mount or unmount a Windows file share.

Parameters:
  • host (str) – Remote host name.

  • password (str) – Password for authentication.

  • drive (str) – Local drive letter to mount to.

  • share (str) – Remote share name.

  • unmount (bool) – If True, unmount instead of mount.