fs.to_string
fs.to_string
Function
Returns the path text bound to the current fs object.
Syntax
fs(path).to_string()
Parameters
No parameters.
Return value
| Type | Description |
|---|---|
| String | Returns the path string. |
Example
file = fs('demo.txt') result = file.to_string() // Output: demo.txt print result
Notes
- Does not access the file system, only returns the object path.