Tech Support > Microsoft Windows > Development Resources > File systems (FAT32) question
File systems (FAT32) question
Posted by Andrew Falanga on May 28th, 2008


Hi,

I'm not exactly sure where to ask this so I'm starting here. The
question is simple. Does the FAT system (in my case, specifically
FAT32) store size and physical size information for a directory? The
file I'm reading from can be found here: http://staff.washington.edu/dittrich/misc/fatgen103.pdf.
From page 22 of this document, "A FAT directory is nothing but a
“file” composed of a linear list of 32-byte structures." (A
definition of this structure can be found on page 23.)

I haven't found anything definitive yet, but I'm thinking that the
answer is no. While size, physical size and such are recorded for
files, it doesn't appear that this is the case for directories. Can
anyone here verify that this is true or false?

Thanks,
Andy

Posted by Jeroen Mostert on May 28th, 2008


Andrew Falanga wrote:
No.

in all respects. From that same document on the very next page: "When a
directory is created, a file with the ATTR_DIRECTORY bit set in its DIR_Attr
field, you set its DIR_FileSize to 0. DIR_FileSize is not used and is always
0 on a file with the ATTR_DIRECTORY attribute (directories are sized by
simply following their cluster chains to the EOC mark)."

--
J.
http://symbolsprose.blogspot.com

Posted by Andrew Falanga on May 28th, 2008


On May 28, 10:07 am, Jeroen Mostert <jmost...@xs4all.nl> wrote:
Thanks for pointing out the black and white lettering that was
starring me in the face but I missed it.

Andy


Similar Posts