Project

freespace

0.0
No commit activity in last 3 years
No release in over 3 years
A simple module that uses data from sys-filesystem to get a human readable amount of free space on a path
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.10
~> 10.0

Runtime

 Project Readme

Freespace

A Ruby module that allows you to get the free space available on a path in a human readable form.

Installation

Add this line to your application's Gemfile:

gem 'freespace'

And then execute:

$ bundle

Or install it yourself as:

$ gem install freespace

Usage

Freespace::get_free_space('/','GB')

This will return a hash with the amount of freespace and the unit being used:

{:free_space=>25, :unit=>"GB"}