# Stats

Describes the status of a file.

# Properties

# string mode

File type and access permission, corresponding to POSIX stat.st_mode.

# number size

File size in bytes, corresponding to POSIX stat.st_size.

# number lastAccessedTime

The time when the file was last accessed or executed, in the UNIX timestamp format, corresponding to POSIX stat.st_atime.

# number lastModifiedTime

The time when the file was last modified, in the UNIX timestamp format, corresponding to POSIX stat.st_mtime.

# Methods

# boolean Stats.isDirectory()

Determines whether the current file is a directory.

# boolean Stats.isFile()

Determines whether the current file is a normal file.