File/Directory Info Function

Owning Palette: Advanced File VIs and Functions

Requires: Base Development System

Returns information about the file or directory specified by path, including its size, its last modification date, whether it is a directory, whether it is a shortcut, and the resolved path if the file or directory is a shortcut. This function does not work for files inside an LLB.

The connector pane displays the default data types for this polymorphic function.

 Add to the block diagram  Find on the palette
path specifies the absolute path to the file or directory whose attributes you want to determine. If you wire an empty path to path, directory returns TRUE.
error in describes error conditions that occur before this node runs. This input provides standard error in functionality.
directory is TRUE if the path points to a directory and FALSE otherwise. If you wire an empty path constant to path, directory returns TRUE.
path out returns path unchanged.
size indicates the size of the file or directory specified by path. If path specifies a directory, size indicates the number of items in the directory. (Windows) If path is an empty path, size indicates the number of drives on the computer. (macOS and Linux) If path is an empty path, size indicates the number of volumes on the computer. Otherwise, size indicates the length in bytes of the specified file, whether the file is a datalog file or a byte stream file.
last mod indicates the date and time at which the file or directory was last modified. The number is a time zone-independent number of seconds that have elapsed since 12:00 a.m., Friday, January 1, 1904, Universal Time [01-01-1904 00:00:00].
error out contains error information. This output provides standard error out functionality.
resolved path returns the path to the shortcut target.
shortcut is TRUE if the path points to a shortcut and FALSE otherwise.