()
return volumes
Returns a list of all Disk objects that are mounted volumes.
Returns a list of all Disk objects that are mounted volumes.
Returns a list of all Disk objects that are mounted volumes .
def MountedVolumes():
  """Returns a list of all Disk objects that are mounted volumes."""
  volumes = []
  volumenames = MountedVolumeNames()
  for partition in Partitions():
    if partition.volumename in volumenames:
      volumes.append(partition)
  return volumes
def MountedVolumes ( ) : volumes = [ ] volumenames = MountedVolumeNames ( ) for partition in Partitions ( ) : if partition . volumename in volumenames : volumes . append ( partition ) return volumes