11---
2- desc : " Type predicates for Lua values and filesystem path kinds ."
2+ desc : " Type predicates for Lua values and filesystem path types ."
33---
44
55# ` is `
66
7- Type predicates for Lua values and filesystem path kinds .
7+ Type predicates for Lua values and filesystem path types .
88
99## Usage
1010
@@ -65,16 +65,16 @@ is("hello", "STRING") --> true
6565
6666** Path Checks** :
6767
68- | Function | Description |
69- | ------------------------- | ------------------------------------------------------- |
70- | [ ` block(v) ` ] ( #fn-block ) | Returns ` true ` when ` v ` is a block device path. |
71- | [ ` char(v) ` ] ( #fn-char ) | Returns ` true ` when ` v ` is a char device path. |
72- | [ ` device(v) ` ] ( #fn-device ) | Returns ` true ` when ` v ` is a block or char device path. |
73- | [ ` dir(v) ` ] ( #fn-dir ) | Returns ` true ` when ` v ` is a directory path. |
74- | [ ` fifo(v) ` ] ( #fn-fifo ) | Returns ` true ` when ` v ` is a FIFO path. |
75- | [ ` file(v) ` ] ( #fn-file ) | Returns ` true ` when ` v ` is a file path. |
76- | [ ` link(v) ` ] ( #fn-link ) | Returns ` true ` when ` v ` is a symlink path. |
77- | [ ` socket(v) ` ] ( #fn-socket ) | Returns ` true ` when ` v ` is a socket path. |
68+ | Function | Description |
69+ | ------------------------- | ------------------------------------------------------------ |
70+ | [ ` block(v) ` ] ( #fn-block ) | Returns ` true ` when ` v ` is a block device path. |
71+ | [ ` char(v) ` ] ( #fn-char ) | Returns ` true ` when ` v ` is a character device path. |
72+ | [ ` device(v) ` ] ( #fn-device ) | Returns ` true ` when ` v ` is a block or character device path. |
73+ | [ ` dir(v) ` ] ( #fn-dir ) | Returns ` true ` when ` v ` is a directory path. |
74+ | [ ` fifo(v) ` ] ( #fn-fifo ) | Returns ` true ` when ` v ` is a FIFO path. |
75+ | [ ` file(v) ` ] ( #fn-file ) | Returns ` true ` when ` v ` is a file path. |
76+ | [ ` link(v) ` ] ( #fn-link ) | Returns ` true ` when ` v ` is a symlink path. |
77+ | [ ` socket(v) ` ] ( #fn-socket ) | Returns ` true ` when ` v ` is a socket path. |
7878
7979### Type Checks
8080
@@ -362,13 +362,13 @@ is.truthy("non-empty")
362362
363363### Path Checks
364364
365- Filesystem path kind checks.
365+ Filesystem path type checks.
366366
367367> [ !IMPORTANT]
368368>
369369> Path checks require ** LuaFileSystem**
370- > ([ ` lfs ` ] ( https://github.com/lunarmodules/luafilesystem ) ) and raise an error it
371- > is not installed. <a id =" fn-block " ></a >
370+ > ([ ` lfs ` ] ( https://github.com/lunarmodules/luafilesystem ) ) and raise an error if
371+ > it is not installed. <a id =" fn-block " ></a >
372372
373373#### ` block(v) `
374374
@@ -392,7 +392,7 @@ is.block("/dev/sda")
392392
393393#### ` char(v) `
394394
395- Returns ` true ` when ` v ` is a char device path.
395+ Returns ` true ` when ` v ` is a character device path.
396396
397397** Parameters** :
398398
@@ -412,7 +412,7 @@ is.char("/dev/null")
412412
413413#### ` device(v) `
414414
415- Returns ` true ` when ` v ` is a block or char device path.
415+ Returns ` true ` when ` v ` is a block or character device path.
416416
417417** Parameters** :
418418
0 commit comments