Lasso Soft Inc. > Home

[ dir->size ]


The [dir->size] method returns the number of items in the directory that the [dir] object represents.

  • Syntax
local(d) = dir(...)
  • Beginner

Display the number of items in web-root

The code below displays the number of items in the web-root folder. For the example, assume that the directory contains the following contents: 'css/', 'img/', 'index.lasso', 'js/', and 'test.lasso'


local(web_root) = dir('/')



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