I want to create an intelligent DiscFree indicator.
Code:
import os
os.system("df -h")
I want to use regular expression (to cut the size in MB), but I can't, because the function returns disk space and value "0".
result = os.system("df -h")
Variable "result" is "0".
How can I access to disk space and use it?