FileOpsObj.$getfileinfo()

Function group Execute on client Platform(s)
FileOps NO All

Syntax

$getfileinfo(iInfoFlags)

Description

Returns a list containing file information for the open file associated with the object. iInfoFlags is a combination of kFileOpsInfo... constants; see the FileOps.$getfileinfo static function for a list of kFileOpsInfo constants. If an error occurs, the function returns an empty list.

After a file has been opened, e.g. after using $createtmpfile(), the $filepath property of the FileOps object instance will contain the path to the file. This is an alternative or shortcut to returning the file name in the list provided by the $getfileinfo() function. If there is no open file or the file has been closed, $filepath is empty.