fs.path
fs.path
Function
Returns the path text bound to the current fs object.
Syntax
fs(path).path()
Parameters
No parameters.
Return value
| Type | Description |
|---|---|
| String | Returns the path string. |
Example
file = fs('demo.txt') result = file.path() // Output: demo.txt print result
Notes
- path behaves the same as to_string.