开发 API 文件 Stats
# Stats
更新时间:2024-07-23 11:06:59
描述文件状态的对象
# 属性
# string mode
文件的类型和存取的权限,对应 POSIX stat.st_mode
# number size
文件大小,单位:B,对应 POSIX stat.st_size
# number lastAccessedTime
文件最近一次被存取或被执行的时间,UNIX 时间戳,对应 POSIX stat.st_atime
# number lastModifiedTime
文件最后一次被修改的时间,UNIX 时间戳,对应 POSIX stat.st_mtime
# 方法
# boolean Stats.isDirectory()
判断当前文件是否一个目录
# boolean Stats.isFile()
判断当前文件是否一个普通文件
上一篇:《ks.getFileSystemManager》
下一篇:《Stats.isDirectory》
仍有疑问? 前往社区提问