Lasso Soft Inc. > Home

[ dir->create ]

Method

The [dir->create] method creates a directory if one doesn't already exist at the path stored in the [dir] object.

  • Syntax
local(d) = dir(...)
#d->create
Examples
  • Beginner

Create a directory named 'rhino'

When the code below is run via Lasso Server, it will create a folder in the web-root named 'rhino.'

Code

local(dir_logo) = dir('/rhino')
#dir_logo->create

Result

A folder named 'rhino' will be created in the web-root if it doesn't already exist

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 2014 | Web Development by Treefrog Inc | PrivacyLegal terms and Shipping | Contact LassoSoft