Apr-24-2024, 03:16 PM
Ok, close, but I get an error:
I see os.statvfs_result(), but that takes many more arguments.
In python 3.12 this works:
But if you have the drive letters, you can think of many workarounds to get the desired result.
Paul
Output:AttributeError: module 'os' has no attribute 'statvfs'
Even in Python 3.12 it does not.I see os.statvfs_result(), but that takes many more arguments.
In python 3.12 this works:
for drive in os.listdrives():but only for drive letters, I don't seem to be able to get the volume labels.
But if you have the drive letters, you can think of many workarounds to get the desired result.
Paul
It is more important to do the right thing, than to do the thing right.(P.Drucker)
Better is the enemy of good. (Montesquieu) = French version for 'kiss'.
Better is the enemy of good. (Montesquieu) = French version for 'kiss'.