<< Previous | Next >>

fat_GetAttr

int fat_GetAttr( FATfile *file );

Description

This function gets the given attributes to the file. Use the defined attribute flags to check the value:

  • FATATTR_READ_ONLY - The file can not be modified.

  • FATATTR_HIDDEN - The file is not visible when doing normal operations.

  • FATATTR_SYSTEM - This is a system file and should be left alone.

  • FATATTR_VOLUME_ID - This is the name of a logical disk.

  • FATATTR_DIRECTORY - This is a directory and not a file.

  • FATATTR_ARCHIVE - This tells you when the file was last modified.

  • FATATTR_LONG_NAME - This is a FAT32 or long file name. It is not supported.

Parameters

file
Handle to the open file.

Return Value

Attributes on success
-EINVAL: invalid file handle.

Library

FAT.LIB

See Also

fat_Open, fat_Status


Dynamic C Functions << Previous | Next >> rabbit.com