FileInfo
Defined in: plugins/fs/guest-js/index.ts:89
A FileInfo describes a file and is returned by stat
, lstat
or fstat
.
2.0.0
atime:
null
|Date
Defined in: plugins/fs/guest-js/index.ts:120
The last access time of the file. This corresponds to the atime
field from stat
on Unix and ftLastAccessTime
on Windows. This may not
be available on all platforms.
birthtime:
null
|Date
Defined in: plugins/fs/guest-js/index.ts:126
The creation time of the file. This corresponds to the birthtime
field from stat
on Mac/BSD and ftCreationTime
on Windows. This may
not be available on all platforms.
blksize:
null
|number
Defined in: plugins/fs/guest-js/index.ts:203
Blocksize for filesystem I/O.
- Windows: Unsupported.
blocks:
null
|number
Defined in: plugins/fs/guest-js/index.ts:211
Number of blocks allocated to the file, in 512-byte units.
- Windows: Unsupported.
dev:
null
|number
Defined in: plugins/fs/guest-js/index.ts:146
ID of the device containing the file.
- Windows: Unsupported.
fileAttributes:
null
|number
Defined in: plugins/fs/guest-js/index.ts:138
This field contains the file system attribute information for a file or directory. For possible values and their descriptions, see File Attribute Constants in the Windows Dev Center
- macOS / Linux / Android / iOS: Unsupported.
gid:
null
|number
Defined in: plugins/fs/guest-js/index.ts:187
Group ID of the owner of this file.
- Windows: Unsupported.
ino:
null
|number
Defined in: plugins/fs/guest-js/index.ts:154
Inode number.
- Windows: Unsupported.
isDirectory:
boolean
Defined in: plugins/fs/guest-js/index.ts:99
True if this is info for a regular directory. Mutually exclusive to
FileInfo.isFile
and FileInfo.isSymlink
.
isFile:
boolean
Defined in: plugins/fs/guest-js/index.ts:94
True if this is info for a regular file. Mutually exclusive to
FileInfo.isDirectory
and FileInfo.isSymlink
.
isSymlink:
boolean
Defined in: plugins/fs/guest-js/index.ts:104
True if this is info for a symlink. Mutually exclusive to
FileInfo.isFile
and FileInfo.isDirectory
.
mode:
null
|number
Defined in: plugins/fs/guest-js/index.ts:163
The underlying raw st_mode
bits that contain the standard Unix
permissions for this file/directory.
- Windows: Unsupported.
mtime:
null
|Date
Defined in: plugins/fs/guest-js/index.ts:114
The last modification time of the file. This corresponds to the mtime
field from stat
on Linux/Mac OS and ftLastWriteTime
on Windows. This
may not be available on all platforms.
nlink:
null
|number
Defined in: plugins/fs/guest-js/index.ts:171
Number of hard links pointing to this file.
- Windows: Unsupported.
rdev:
null
|number
Defined in: plugins/fs/guest-js/index.ts:195
Device ID of this file.
- Windows: Unsupported.
readonly:
boolean
Defined in: plugins/fs/guest-js/index.ts:128
Whether this is a readonly (unwritable) file.
size:
number
Defined in: plugins/fs/guest-js/index.ts:108
The size of the file, in bytes.
uid:
null
|number
Defined in: plugins/fs/guest-js/index.ts:179
User ID of the owner of this file.
- Windows: Unsupported.
© 2025 Tauri Contributors. CC-BY / MIT