[ type ] FileStat

Description:

An object returned by ui.fileStat(path), which contains information about a file or directory.

Type: Object

Properties:

Name Type Description

isFile

boolean

Indicates if the entry is a regular file

isDirectory

boolean

Indicates if the entry is a directory

isSymlink

boolean

Indicates if the entry is a symbolic link

dev

number

Device ID containing the file

rdev

number

Device ID (if special file)

nlink

number

Number of hard links

user

number

User ID of the file owner

group

number

Group ID of the file owner

size

number

Size of the file in bytes

mode

number

File mode (permissions and file type)

atime

Date

Last access time

mtime

Date

Last modification time (e.g. 2025-11-10T08:13:44.386Z)

ctime

Date

Last status change time (e.g. 2025-11-10T08:13:44.386Z)

birthtime

Date

File creation time (e.g. 2025-11-10T08:13:44.386Z)

Also See: