Back to Adaptive Vision Library website

You are here: Start » Function Reference » System » File System » FileAttributes

FileAttributes


Header: STD.h
Namespace: avl
Module: FoundationLite

Provides information about file, e.g. size, modification time

Syntax

void avl::FileAttributes
(
	const atl::File& inFile,
	int& outSizeInKBytes,
	atl::int64& outSizeInBytes,
	bool& outIsReadOnly,
	atl::String& outAccessTime,
	atl::String& outModificationTime,
	atl::String& outCreationTime
)

Parameters

Name Type Default Description
inFile const File& Input file
outSizeInKBytes int& File size in kilobytes
outSizeInBytes int64& File size in bytes
outIsReadOnly bool& Flag indicating whether the file is read-only
outAccessTime String& File access time
outModificationTime String& File modification time
outCreationTime String& File creation time

Remarks

Linux

File creation time is unavailable when running AVL on Linux due to file system restrictions. It will always report value 0 which translates to the following time: 1970-01-01T01:00:00.