Reduce device size minimum requirement to 850MB
This commit is contained in:
parent
7480787538
commit
119ebc9b7c
@ -256,8 +256,8 @@ def get_list():
|
||||
for dev in ud_manager.EnumerateDevices():
|
||||
device_obj = bus.get_object('org.freedesktop.UDisks', dev)
|
||||
device_props = dbus.Interface(device_obj, dbus.PROPERTIES_IFACE)
|
||||
# If dev.space > 1 Gb
|
||||
if(device_props.Get('org.freedesktop.UDisks.Device', 'PartitionSize')) > 1073741823:
|
||||
# If dev.space > 850 MB
|
||||
if(device_props.Get('org.freedesktop.UDisks.Device', 'PartitionSize')) > 891289600:
|
||||
# If dev is removable
|
||||
if(device_props.Get('org.freedesktop.UDisks.Device', 'DeviceIsRemovable')):
|
||||
# Populate the arrays
|
||||
|
Loading…
Reference in New Issue
Block a user