blocks - A number containing the number of blocks allocated for file.size - A number containing the file size, in bytes.creation - A number containing the time the file was created (as seconds since the UNIX epoch).The second group of three characters follow the same convention, but refer to whether or not the file's group have Read/Write/Execute permissions, and the final three characters follow the same convention, but apply to other system users not covered by the Owner or Group fields. The first character will be "r" if the user has read permissions, "-" if they do not the second will be "w" if they have write permissions, "-" if they do not the third will be "x" if they have execute permissions, "-" if they do not. The first three characters represent Read/Write/Execute permissions for the file owner. permissions - A 9 character string specifying the user access permissions for the file.modification - A number containing the time of the last file contents change (as seconds since the UNIX epoch).change - A number containing the time of last file status change (as seconds since the UNIX epoch).access - A number containing the time of last access modification (as seconds since the UNIX epoch).rdev - A number containing the type of device, for files that are char/block devices.gid - A number containing the group-id of owner.uid - A number containing the user-id of owner.nlink - A number containing a count of hard links to the file.mode - A string containing the type of the file (possible values are: file, directory, link, socket, named pipe, char device, block device or other).ino - A number containing the inode of the file.dev - A number containing the device the file resides on.attribute mode is a string, all the others are numbers, and the time related attributes use the same time reference of os.time: If the second optional argument is given, then a string is returned with the value of the named attribute. A table with the file attributes corresponding to filepath (or nil followed by an error message in case of error).If this value is specified, only the attribute requested, is returned filepath - A string containing the path of a file to inspect. Hs.fs.attributes(filepath ) -> table or string or nil,error
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |