Module: shares¶
This module is used to deal with mounting and unmounting samba shares.
Members¶
- linuxmusterLinuxclient7.shares.getLocalSysvolPath()[source]¶
Get the local mountpoint of the sysvol
- Returns
Full path of the mountpoint
- Return type
- linuxmusterLinuxclient7.shares.getMountpointOfRemotePath(remoteFilePath, hiddenShare=False, username=None, autoMount=True)[source]¶
Get the local path of a remote samba share path. This function automatically checks if the shares is already mounted. It optionally automatically mounts the top path of the remote share: If the remote path is //server/sysvol/linuxmuster.lan/Policies it mounts //server/sysvol
- Parameters
- Parama autoMount
If the share should be mouted automatically if it is not already mounted
- Returns
Tuple: (success, mountpoint)
- Return type