# Cross platform method to obtain disk usage

**URL:** <https://rubytalk.org/t/cross-platform-method-to-obtain-disk-usage/16268>\
**Category:** ruby-talk\
**Created:** [5 February 2005 04:19 UTC](https://rubytalk.org/t/cross-platform-method-to-obtain-disk-usage/16268 "2005-02-05T04:19:06Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![\_Pena\_Botp1](https://avatars.discourse-cdn.com/v4/letter/_/94ad74/32.png) [@\_Pena\_Botp1](https://rubytalk.org/u/_Pena_Botp1)\
**Post date:** [5 February 2005 04:19 UTC](https://rubytalk.org/t/cross-platform-method-to-obtain-disk-usage/16268/1 "2005-02-05T04:19:06Z")

</div>

//No, it doesn't work on Windows. I've been mulling over a  
//win32-filesystem package for win32utils, but I don't know  
//that it's realistic to keep a unified API between \*nix and  
//Win32. But, I'll mull it over.  
//

I think it has been available fr python long ago (maybe some python gurus  
here can also help decipher). python has some generic os class; eg  
[http://www.linbox.com/ucome.rvt?file=/any/doc\_distrib/python-2.0/lib/allos.h](http://www.linbox.com/ucome.rvt?file=/any/doc_distrib/python-2.0/lib/allos.h)  
tml

I agree this herculean task is important; and it does hit the base/root of  
the problem/need -that of seamless\_unified api as zach\_dennis pointed out.

//Regards,  
//  
//Dan  
//  
//

kind regards -botp

> **···**
>
> Daniel Berger [[mailto:djberg96@hotmail.com](mailto:djberg96@hotmail.com)] wrote:
