codecamp

Stats

Stats

描述文件状态的对象


属性

mode string

文件的类型和存取的权限,对应 POSIX stat.st_mode

size number

文件大小,单位:B,对应 POSIX stat.st_size

lastAccessedTime number

文件最近一次被存取或被执行的时间,UNIX 时间戳,对应 POSIX stat.st_atime

lastModifiedTime number

文件最后一次被修改的时间,UNIX 时间戳,对应 POSIX stat.st_mtime


方法

boolean Stats.isDirectory()

判断当前文件是否一个目录

boolean Stats.isFile()

判断当前文件是否一个普通文件


FileSystemManager.removeSavedFile
Stats.isDirectory
温馨提示
下载编程狮App,免费阅读超1000+编程语言教程
取消
确定