Lasso Soft Inc. > Home

[ file->exists ]


The [file->exists] method checks to see if the path set for the [file] object exists and returns true if it does and false if it doesn't.

  • Syntax
local(f) = file(...)
  • Beginner

Create a file if it does not exist

The code below checks to see if a file exists and creates it if it doesn't.


local(styles) = file('/css/styles.css')

if(not #styles->exists) => {

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