# Suggestion: Pathname#freespace

**URL:** <https://www.ruby-forum.com/t/suggestion-pathname-freespace/179541>\
**Category:** Ruby\
**Created:** [November 27, 2009, 7:52pm UTC](https://www.ruby-forum.com/t/suggestion-pathname-freespace/179541 "2009-11-27T19:52:27Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![rogerdpack](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/45deac/32.png) [@rogerdpack](https://www.ruby-forum.com/u/rogerdpack)\
**Post date:** [November 27, 2009, 7:52pm UTC](https://www.ruby-forum.com/t/suggestion-pathname-freespace/179541/1 "2009-11-27T19:52:27Z")

</div>

Here’s my suggestion:

Pathname#freespace # tells you how much freespace is available on that  
mountpoint

Of course java has two different calls–getFreeSpace and getUsableSpace  
– would it be worth having two here?  
Any thoughts on this one?

-r
