diff options
-rw-r--r-- | code/directory.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/code/directory.rb b/code/directory.rb index a686e87e..01634ca0 100644 --- a/code/directory.rb +++ b/code/directory.rb @@ -124,7 +124,7 @@ class Directory if @free_space then return @free_space end @free_space = 0 - out = `df -B 1 #{~path}` + out = `df -PB 1 #{~path}` out = out[out.index("\n")+1, out.index("\n", out.index("\n"))] if out =~ /^[^\s]+ \s+ \d+ \s+ \d+ \s+ (\d+) \s+/x @free_space = $1.to_i |