Lasso Soft Inc. > Home

[ dir->resolvelinks ]

Method

The [dir->resolvelinks] method returns a boolean of whether or not the member methods of a [dir] object will resolve symbolic links or not. The default value is false - to not resolve symbolic links. This is a private method and can only be used in the type's definition.

  • Syntax
define dir->myMethod => {
    .resolvelinks
}
Examples
  • Advanced

Create a method to return resolvelinks status

The code below creates a member method for the [dir] type that returns the status of resolvelinks. It then tests it out to see if it works.

Code

define dir->followLinks => {
    return .resolvelinks
}

local(no_resolve_links) = dir('/')
local(resolve_links) = dir('/', -resolveLinks=true)

#no_resolve_links->followLinks
'<br />'
#resolve_links->followLinks

Result

false
true

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