# Re: Disk Free Space (Re: Who Wants to Be a Scripting Guy?)

**URL:** <https://www.ruby-forum.com/t/re-disk-free-space-re-who-wants-to-be-a-scripting-guy/61040>\
**Category:** Ruby\
**Created:** [May 19, 2006, 4:17pm UTC](https://www.ruby-forum.com/t/re-disk-free-space-re-who-wants-to-be-a-scripting-guy/61040 "2006-05-19T16:17:39Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![BergerS\_Daniel](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/bc8723/32.png) [@BergerS\_Daniel](https://www.ruby-forum.com/u/BergerS_Daniel)\
**Post date:** [May 19, 2006, 4:17pm UTC](https://www.ruby-forum.com/t/re-disk-free-space-re-who-wants-to-be-a-scripting-guy/61040/1 "2006-05-19T16:17:39Z")

</div>

> should be  
> `df -k #{dir}`[/\n.{20} (\d+)/, 1].to\_i \* 1024
> 
> Cheers,  
> Dave

See the “filesystem” package on the RAA for an actual C extension.  
Doesn’t support Windows yet, though. It’s on the “TODO” list for the  
Win32Utils project.

Dan

This communication is the property of Qwest and may contain confidential  
or  
privileged information. Unauthorized use of this communication is  
strictly  
prohibited and may be unlawful. If you have received this communication  
in error, please immediately notify the sender by reply e-mail and  
destroy  
all copies of the communication and any attachments.
