win.GetFileInfo

LuaFAR 3

win.GetFileInfo


Info = win.GetFileInfo (FileName)

Parameters

FileName: string
A valid directory or path and filename, which can contain wildcard characters (* and ?)

Returns

On success: tPluginPanelItem table
On failure: nil + error message

Description

This function provides information about the specified file. The same information can be obtained with far.RecursiveSearch function, but this function has simpler API and is much faster when single file data are needed.

Windows API used

FindFirstFile, FindClose