Documentation

dirStruct

Type definition for file system folder information structure

Syntax

typedef struct {
   char Name[8];
   char Ext[3];
   int  Day;
   int  Month;
   int  Year;
   int  Hour;
   int  Min;
   int  isDir;
   unsigned long  Size;
} dirStruct; 

Fields

Name

This value contains the name of the file or folder.

A fully qualified folder name can have a maximum of 248 characters, including the drive letter, colon, and backslash.

Ext

This value contains the file type of the element, if the element is a file (isDir is 0). If the element is a folder (isDir is 1), this field is empty.

Day

This value contains the day the file or folder was last modified.

Month

This value contains the month the file or folder was last modified.

Year

This value contains the year the file or folder was last modified.

Hour

This value contains the hour the file or folder was last modified.

Min

This value contains the minute the file or folder was last modified.

isDir

This value indicates if the element is a file (0) or folder (1). If it is a folder, Bytes has a value of 0.

Size

This value contains the size of the file in bytes. If the element is a folder, this value is 0.

Description

The dirStruct structure contains information for a folder in the file system.

Introduced in R2007a

Was this topic helpful?