fs.is_symlink
fs.is_symlink
Function
Determine whether the path is a symbolic link.
Syntax
fs(path).is_symlink()
Parameters
No parameters.
Return value
| Type | Description |
|---|---|
| Bool | Returns true if the link is a symbolic link, false otherwise. |
Example
file = fs('demo.txt') result = file.is_symlink() // Output: false print result
Notes
- Returns false if the path does not exist.