The [file->path] method returns the value stored in the [file] object's path data member. This may not be the full path to the file since the [file] object can take both relative paths and web-root based paths.
local(f) = file(...)
#f->path
The example below outputs the path currently stored in the [file] object. The path passed to the constructor was a web-root based path.
Code
local(my_file) = file('/rhino/test.txt')
#my_file->path
Result
/rhino/test.txt
Please note that periodically LassoSoft will go through the notes and may incorporate information from them into the documentation. Any submission here gives LassoSoft a non-exclusive license and will be made available in various formats to the Lasso community.
©LassoSoft Inc 2015 | Web Development by Treefrog Inc | Privacy | Legal terms and Shipping | Contact LassoSoft
Recent Comments