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.
define dir->myMethod => {
.resolvelinks
}
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
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 2015 | Web Development by Treefrog Inc | Privacy | Legal terms and Shipping | Contact LassoSoft
Recent Comments