fls
File listing accessor for the file: URI scheme
Release Notes
attachGoldenThread
cast
copy
cutGoldenThread
cwu
delete
dpml
dump
entrypoint
exists
expire
fls
guid
hotRestart
HTTPCookie
HTTPRedirect
isUnix
locationToXPath
lock/unlock
log
loglevel
luceneIndex
luceneSearch
mapper
mapper-export
md5
mls
netkernel:*
new
Orchextra
org.ten60.util.aspell
org.ten60.util.image.SVG2PNG
org.ten60.util.image.Text2PNG
org.ten60.util.image.xchart
plainTextToXHTML
regex
relativizeURI
requestWithArgs
resolveURI
serialize
sleep
sqlBatch
sqlBooleanQuery
SQLEncodeElement
SQLEscapeXML
sqlQuery
sqlUpdate
stm
stopWatch
StringToCanonicalString
throw
toRelaxNG
trace
validateDTD
validateRNG
validateSchematron
validateXSD
xacml
xform
XHREFlinker
XHTMLredirect
XHTMLTidy
xinclude
xmltidy
xpatheval
xpur
xquery
xrl
xsign
xslfo-fop
xslfo-fop
xslt
xverify
License
Change History
NetKernel History
Acknowledgements

fls

Used to generate a document representation of the real file-system

Module

urn:org:ten60:netkernel:ext:sys

Definition

Format

<instr>
  <type>fls</type>
  <operator>
    <fls>
      <root>file:///home/foo/bar/</root>
      <filter>.*xml</filter>
      <recursive />
      <uri />
    </fls>
  </operator>
  <target>var:als</target>
</instr>

Syntax

ElementRulesDescription
typeMandatory fls
operatorMandatory required a document specifying properties for the directory listing
targetMandatory the target resource

The fls accessor walks the real filesystem to generate an xml document representation of the file tree structure.

The resources that are matched are selected based upon a set a regular expression filter applied to the resource URI. The resource filter is provided as the operator.

The resulting document is hierarchical tree representation of the real filesystem tree. The structure of the returned document is as follows

<fls> ...
  <dir>home
    <res>mydoc.doc
      <uri>file:///home/mydoc.doc</uri>
    </res>
  </dir> ...
</fls>

Operator Syntax

The fls accessor requires some properties to specify what to include in the listing. These are passed in by the operator in a <fls> property document.

<fls>
  <filter>.*</filter>
  <recursive />
  <uri />
  <age />
  <size />
  <lastmodified />
</fls>

<root> The base directory URI. eg file:///C:/some/path/
<filter> Filter. Regular Expression
<recursive/> Recurse the tree
<uri/> Include the full URI of the resource
<age/> Include age in ms
<size/> Include size in bytes
<lastmodified/> Include last modified in ms


(C) 2003, 1060 Research Limited
© 2003,2004, 1060® Research Limited
1060 registered trademark, NetKernel trademark of 1060 Research Limited