Re: [Tutor] Looking for something similar to du...

2008-05-06 Thread Alan Gauld
"Marc Tompkins" <[EMAIL PROTECTED]> wrote As to finding disk usage on Windows I found this snippet on an MSDN forum: -- >I don't believe there is any direct way in Windows to do that but WMI might provide a way. Nevertheless this is not what you'd want to Which is rathe

Re: [Tutor] Looking for something similar to du...

2008-05-06 Thread Marc Tompkins
On Mon, May 5, 2008 at 11:55 PM, Alan Gauld <[EMAIL PROTECTED]> wrote: > > As to finding disk usage on Windows I found this > snippet on an MSDN forum: > > -- > If you want the size of the file on disk when compressed or sparse > then you have to use Platform/Invoke to call GetComp

Re: [Tutor] Looking for something similar to du...

2008-05-05 Thread Alan Gauld
"Marc Tompkins" <[EMAIL PROTECTED]> wrote Can you explain what you mean by the diffrence between the size used versus the size of the image? Disk space is allocated in large units (in DOS/Windows they're called "clusters", *nixes call them "blocks"). Ah yes, indeed it is. And in a previous

Re: [Tutor] Looking for something similar to du...

2008-05-05 Thread Spencer Parker
Mark is right...in that I don't want the actual size of the file itself...that I can get from another way in Python which i am already doing. I was mainly wondering if there was a way to do it and I was just missing something. I looked though stat() and that is basically what I wanted. I wasn't

Re: [Tutor] Looking for something similar to du...

2008-05-05 Thread Marc Tompkins
On Mon, May 5, 2008 at 5:21 PM, Alan Gauld <[EMAIL PROTECTED]> wrote: > Probably but I'm not totally clear what you are looking for. > Can you explain what you mean by the diffrence between the size > used versus the size of the image? Surely the size of the image > is the space it uses? Or are yo

Re: [Tutor] Looking for something similar to du...

2008-05-05 Thread Alan Gauld
"Spencer Parker" <[EMAIL PROTECTED]> wrote I am wondering if there is a way to do something that du does in Linux. I have several disk images and I need a way to get the size used...not the size of the image. If you type in du and the disk image path it gives you this number. is there anyw

[Tutor] Looking for something similar to du...

2008-05-05 Thread Spencer Parker
I am wondering if there is a way to do something that du does in Linux. I have several disk images and I need a way to get the size used...not the size of the image. If you type in du and the disk image path it gives you this number. is there anyway to do this in python? -- Spencer Parker