From a442e16f7b235c9b673c7178bf6e8d07027baa80 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=89=E5=92=B2=E9=9B=85=20=C2=B7=20Misaki=20Masa?= Date: Tue, 23 Apr 2024 22:33:59 +0800 Subject: [PATCH] docs: add is_exec and is_sticky to Cha (#54) --- docs/plugins/types.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/plugins/types.md b/docs/plugins/types.md index 1dacd04b..f993bdcb 100644 --- a/docs/plugins/types.md +++ b/docs/plugins/types.md @@ -19,6 +19,8 @@ Cha means one file's characteristics with the following properties: - `is_char_device` - Whether this file is a character device - `is_fifo` - Whether this file is a fifo - `is_socket` - Whether this file is a socket +- `is_exec` - Whether this file is executable +- `is_sticky` - Whether this file has the sticky bit set - `length` - The length of this file, returns an integer representing the size in bytes. Note that it can't reflect the size of a directory, use [`size()`](#app-data.folder-file) instead - `created` - The created time of this file in Unix timestamp, or `nil` if it doesn't have a valid time - `modified` - The modified time of this file in Unix timestamp, or `nil` if it doesn't have a valid time