Products & Services Solutions Academia Support User Community Company

Learn more about xPC Target   

dirStruct - Type definition for file system folder information structure

Prototype

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

Arguments

Name

This value contains the name of the file or folder.

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.

See Also

API function xPCFSDirItems

  


Related Products & Applications

Learn more about Simulink through this collection of videos, articles, technical literature and the Getting Started with Simulink Guide.

 © 1984-2010- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS