FileHandler concept working with simple files.
With this handler you can get or set the specified file content.
URL format is :
file:/<path>
Possible options :
-
action
- if this option is append
then the specified
string will be appended to the file else the file conetent will be
overwrited with the specified string
-
requests
- use this option to specify how many times will
go the search in sublinks from the current path.
-
depth
- use this option to specify how deep will go the search
in sublink from the current path.
-
filter
- use this option to specify filter for your results.
Get the specified file content.
$file from "file:/dirNane/fileName"
print $file/content
Get the specified files name from specified directory recursively 5 times maximum 2 depth.
$files from "file:/dirName/" options "requests"=5 ,"depth"=2
each $file in $files do [
print $file@url
]
Get the specified files name from specified directory recursively 5 times maximum 2 depth
where files have 'txt' extension.
$files from "file:/dirName/" options "requests"=5 ,"depth"=2, "filter"=Simplex.create("*.txt")
each $file in $files do [
print $file@url
]
Methods inherited from: Concept
cloneConcept, extendsConcept, fromXML, getAllInheritedConcepts, getConceptAttribute, getConceptAttributeField, getConceptAttributeFields, getConceptAttributes, getConceptConstructors, getConceptElement, getConceptElementField, getConceptElementFields, getConceptElements, getConceptLabel, getConceptMethod, getConceptMethods, getConceptOperators, getConceptType, getConceptsAtPath, getErrorHandler, getInheritedConcepts, hasConceptAttribute, hasConceptElement, hasConceptMethod, hasPath, isHidden, loadContent, setConceptLabel, setErrorHandler, setHidden, setShowEmpty, showEmpty, toTXT, toXML |
|
Methods inherited from: URIHandler
|
Parameters: |
$url : | The url with which this FileHandler will be created. |
|
Creates a new FileHandler concept with the given $url.
Parameters: |
$url : | The uri which will be tested if it is acceptable by this handler. |
|
Returns true if the given $uri is acceptable by this handler, false
otherwise.
Returns true.
Returns the content of this handler.
Parameters: |
$options : | Contains a filter with which the returned content will be filtered. |
|
Returns true if the FTPHandler was initilized successfully, false otherwise.
Returns true if the connection can be establised to the specified file, false otherwise.
Parameters: |
$value : | The value to be set. |
|
Sets this FileHandler content to the specified $value.