Stores attributes for a specified file or directory into an array.

AFileAttributes(cArrayName, cFileName[, bUTCTimes])

Parameters

cArrayName
On return the array contains the following information from the WIN32_FILE_ATTRIBUTE_DATA structure.
ElementContentDatatype
1AttributesN
2FilesizeN
3Creation timeT
4Last access timeT
5Last write timeT
cFileName

The name of the file for which to retrieve the attributes.

bUTCTimes (optional)

default = .F.

If .T. the filetimes are retrieved as UTC times, otherwise they are converted to the current local timezone.

Return Value

Always .T.

See Also

Reference

ADirectoryInfo
ADirEx
ADriveInfo
AFileAttributesEx
CancelFileChange
CompareFileTimes
CopyFileEx
DeleteDirectory
DeleteFileEx
FindFileChange
GetFileAttributes
GetFileOwner
GetFileSize
GetFileTimes
GetLongPathName
GetShortPathName
MoveFileEx
SetFileAttributes
SetFileTimes

Used WinApi functions

GetFileAttributesEx