def unmountShare_(self, sender): NSLog('User clicked {}'.format(sender.title())) mounted_volumes = SMUtilities.get_mounted_network_volumes() if sender.title() == 'Unmount All': for mounted in mounted_volumes: SMUtilities.unmount_share(mounted) else: network_share = self.config_manager.get_sharebykey('title', sender.parentItem().title()) if network_share.get('mount_point') in mounted_volumes: SMUtilities.unmount_share(network_share.get('mount_point'))
def unmountShare_(self, sender): NSLog('User clicked {}'.format(sender.title())) mounted_volumes = SMUtilities.get_mounted_network_volumes() if sender.title() == 'Unmount All': for mounted in mounted_volumes: SMUtilities.unmount_share(mounted) else: network_share = self.config_manager.get_sharebykey( 'title', sender.parentItem().title()) if network_share.get('mount_point') in mounted_volumes: SMUtilities.unmount_share(network_share.get('mount_point'))
def unmountAllShares(self): mounted_volumes = SMUtilities.get_mounted_network_volumes() for mounted in mounted_volumes: SMUtilities.unmount_share(mounted)
def unmountAllShares(self): mounted_volumes = SMUtilities.get_mounted_network_volumes() for mounted in mounted_volumes: SMUtilities.unmount_share(mounted)