Skip to content

Commit

Permalink
docs: update types.md
Browse files Browse the repository at this point in the history
  • Loading branch information
sxyazi committed Aug 3, 2024
1 parent 4b2a645 commit 4afd844
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions docs/plugins/types.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,11 @@ Cha means one file's characteristics with the following properties:
- `is_hidden` - Whether this file is hidden (starts with a dot)
- `is_link` - Whether this file is a symlink
- `is_orphan` - Whether this file is a bad symlink, which points to a non-existent file
- `is_block_device` - Whether this file is a block device
- `is_char_device` - Whether this file is a character device
- `is_dummy` - Whether the file is dummy, which fails to load complete metadata, possibly the filesystem doesn't support it, such as FUSE.
- `is_block` - Whether this file is a block device
- `is_char` - Whether this file is a character device
- `is_fifo` - Whether this file is a fifo
- `is_socket` - Whether this file is a socket
- `is_sock` - 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
Expand All @@ -31,6 +32,7 @@ And the Unix only properties:

- `uid` - The user id of this file
- `gid` - The group id of this file
- `nlink` - The number of hard links to this file

### File {#shared.file}

Expand Down

0 comments on commit 4afd844

Please sign in to comment.