Forums

Get the size of a folder in Python / free space

Hello!

Is there any way to get the size of one of my folders from Python (Django)? Im trying with subprocess.Popen, that works in the console, but it doesnt if its executed from django.

Or is there any way to get from Python the storage available in my account?

Solved. A complete path in subprocess.Popen was needed

great. you can also do a du -sh /your/folder/path from the commandline