Information Technology Reference
In-Depth Information
// Set the destination FILE structure's current cluster to the directory's cluster.
foDest -> dirccls = foDest -> dirclus;
// Read a directory entry.
if ( Cache_File_Entry(foDest, &fHandle, TRUE) == NULL)
{
statusB = CE_BADCACHEREAD;
}
else
{
// Read entries until finding the file or the end of the directory.
while (1)
{
if (statusB!=CE_GOOD)
{
// Store information about the file.
state = Fill_File_Object(foDest, &fHandle);
if (state == NO_MORE)
{
// The entry doesn't exist or is empty.
break;
}
}
else
{
// There was a problem in reading the file information.
break;
}
if (state == FOUND)
{
// An entry was found. Read the attributes.
attrib = foDest -> attributes;
attrib &= ATTR_MASK;
Search WWH ::




Custom Search