FSetInfo (CIN Function)
MgErr FSetInfo(path, infop);
Purpose
Sets information for the specified file or directory. If an error occurs, no information changes.
Parameters
Name | Type | Description |
---|---|---|
path | Path | Path of the file or directory for which you want to set information. |
infop | FInfoPtr | Address of information FSetInfo sets for the file or directory. |
FInfoPtr is a data structure that defines the attributes of a file or directory. The following code lists the file/directory information record, FInfoPtr.
typedef struct { | ||||||
int32 | type; | * system specific file type-- 0 for directories */ | ||||
int32 | creator; | * system specific file creator-- 0 for folders (on Mac only)*/ | ||||
int32 | permissions; | * system specific file access rights */ | ||||
int32 | size; | /* file size in bytes (data fork on Mac) or entries in directory*/ | ||||
int32 | rfSize; | /* resource fork size (on Mac only) */ | ||||
uint32 | cdate; | /* creation date: seconds since system reference time */ | ||||
uint32 | mdate; | /* last modification date: seconds since system ref time */ | ||||
Bool32 | folder; | /* indicates whether path refers to a folder */ | ||||
Bool32 | isInvisible; | /* indicates whether file is visible in File Dialog (on Mac only)*/ | ||||
Point | location; | /* system specific desktop geographical location (on Mac only)*/ | ||||
Str255 | owner; | /* owner (in pascal string form) of file or folder */ | ||||
Str255 | group; | /* group (in pascal string form) of file or folder */ | ||||
} | FInfoRec, *FInfoPtr; |
Return Value
MgErr, which can contain the following errors. If you receive errors from CIN functions, most error names correspond to LabVIEW error codes.
Value | Corresponding Error Code or Description |
---|---|
noErr | No error. |
mgArgErr | 1 |
fIOErr | 6 |
fNotFound | 7 |