Stats
Describes the status of a file.
Methods
| Property | Type | Description | 
|---|---|---|
| lastAccessedTime | number | The time when the file was last accessed or executed, in the UNIX timestamp format, corresponding to POSIX stat.st_atime. | 
| lastModifiedTime | number | The time when the file was last modified, in the UNIX timestamp format, corresponding to POSIX stat.st_mtime. | 
| mode | string | File type and access permission, corresponding to POSIX stat.st_mode. | 
| size | number | File size in bytes, corresponding to POSIX stat.st_size. | 
isDirectory
Determines whether the current file is a directory.
() => boolean
API Support
| API | WeChat Mini-Program | H5 | React Native | 
|---|---|---|---|
| Stats.isDirectory | ✔️ | 
isFile
Determines whether the current file is a normal file.
() => boolean
API Support
| API | WeChat Mini-Program | H5 | React Native | 
|---|---|---|---|
| Stats.isFile | ✔️ | 
API Support
| API | WeChat Mini-Program | H5 | React Native | 
|---|---|---|---|
| Stats.isDirectory | ✔️ | ||
| Stats.isFile | ✔️ |