Lasso Soft Inc. > Home

[ file->path ]

Method

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.

  • Syntax
local(f) = file(...)
#f->path
Examples
  • Beginner

Return the current 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

Recent Comments

No Comments found

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. > Home

 

 

©LassoSoft Inc 2015 | Web Development by Treefrog Inc | PrivacyLegal terms and Shipping | Contact LassoSoft