discovery.fileInfo(target, filename[, win64_redirect=true|false]) – (7.2 and later)
Retrieves information about the specified file, but not the file content. This is useful if the file is a binary file or particularly large.
64 bit Windows hosts have the following system directories for holding executables, DLLs, and so forth:
%windir%\system32– 64 bit executables and DLLs
%windir%\SysWOW64– 32 bit executables and DLLs
win64_redirect is an optional flag which enables you to specify whether the search for the file should take place in the 32 bit directory if not found in the 64 bit directory. TRUE means search the 32 bit directory, FALSE means do not search the 32 bit directory if the file is not found in the 64 bit directory. The default is TRUE.
Filenames that do not start with
%systemroot%\system32 are never checked for redirection.
On non-Windows and 32 bit Windows systems
win64_redirect has no effect.
win64_redirect flag is new in 8.2.
Returns a DiscoveredFile node with no content attribute.Retrieves the specified file.