Newsgroups : Borland : borland.public.delphi.nativeapi.win32 : 2005 Aug : Actual Size of a File on Disk - Offline File

www.cryer.info
Managed Newsgroup Archive

Actual Size of a File on Disk - Offline File

Subject:Actual Size of a File on Disk - Offline File
Posted by:"G. Bradley MacDonald" (bradley..@telusdot.net)
Date:Tue, 2 Aug 2005 06:05:59 -0700

Hello Everyone,

I am looking for an API that will give me the Actual size of a file on
disk - for an OffLine file.  This is different than getting the Acutal
size of a file using the cluster sizes and rounding the nearest
cluster...

Basically - you can have a file that is 10 MB stored off-line - and
windows will report the size of the files as 10 MB - but the size on
disk shows as 4KB (basically a link to the file - so it uses the size of
one cluster - which in this case is 4KB).

How do you get this 4KB value?   There must be a API call to get it <g>
Does anyone know what it is?

thank you in advance!

Bradley MacDonald
bradley _AT_ telus _DOT_ net

Glossary

Replies:

www.cryer.info
Managed Newsgroup Archive