Commit 2e207ceb authored by HERBERT Ryan's avatar HERBERT Ryan
Browse files debug print

parent 88717786
......@@ -415,6 +415,7 @@ def check_enough_space(directory):
import subprocess
df = subprocess.Popen(["df", directory], stdout=subprocess.PIPE)
output = df.communicate()[0]
print output
device, size, used, available, percent, mountpoint = output.split("\n")[1].split()
available = int(available)
size = int(size)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment