diff options
Diffstat (limited to 'ranger/gui/widgets/statusbar.py')
-rw-r--r-- | ranger/gui/widgets/statusbar.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/ranger/gui/widgets/statusbar.py b/ranger/gui/widgets/statusbar.py index 8786af06..a1617aa8 100644 --- a/ranger/gui/widgets/statusbar.py +++ b/ranger/gui/widgets/statusbar.py @@ -18,6 +18,7 @@ from ranger.ext.human_readable import human_readable from . import Widget from ranger.gui.bar import Bar + class StatusBar(Widget): __doc__ = __doc__ owners = {} @@ -314,10 +315,12 @@ class StatusBar(Widget): self.color_at(0, 0, int(barwidth), ("in_statusbar", "loaded")) self.color_reset() + def get_free_space(path): stat = os.statvfs(path) return stat.f_bavail * stat.f_frsize + class Message(object): elapse = None text = None |