fileStat(file_path, [about_link])

Class: SwingUI.

Description:

Gets information about a file or directory, like times, size, if it's a file or directory, etc.

Parameters:

Name Type Default Description

file_path

string | URL

Local file or directory path.

[about_link]

boolean

false

true makes the method return information about the symbolic link itself instead of the path the link redirects to. Only applies to symbolic links.

Returns:

Returns information about specified file or directory, or throws an Error if it doesn't exist, access is denied, or argument is invalid.

Type: FileStat

Also See: