This concept is working with FTP files.
With this concept you can get or set FTP file content,
can verify if the specified FTP file is a file or is a directory,
and if is a directory you can read a contents of directory.
Create specified file on FTP server and set the content of this file.
$page = FTPFile.create("ftp://userName:passwd@hostName/dirName/fileName")
$page.setcontent("This is a test.")
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 |
|
Label: | contentType |
Type: | String |
Is Static: | false |
Is Hidden: | false |
Show Empty: | true |
A String indicating this FTPFile content type.
Label: | length |
Type: | Integer |
Is Static: | false |
Is Hidden: | false |
Show Empty: | true |
An Integer indicating this FTPFile length.
Label: | url |
Type: | String |
Is Static: | false |
Is Hidden: | false |
Show Empty: | true |
A String indicating this FTPFile url.
Label: | content |
Type: | String |
Is Static: | false |
Is Hidden: | false |
Is Multi: | false |
Show Empty: | true |
A String containing this FTPFile content.
Parameters: |
$url : | The url with which this FTPFile will be created. |
|
Exceptions: |
connectionRefuzed :
(Error) | If the FTP server refuzed connection from your computer. |
Creates a new FTPFile concept with the given $url.
Returns true if this FTPFile is already exists, false otherwise.
Exceptions: |
FTPOperationFailed :
(Error) | If unable to execute FTP command. |
Returns this FTPFile content.
Exceptions: |
FTPOperationFailed :
(Error) | If unable to execute FTP command. |
Returns the directories from this FTPFile concept url.
Returns true if this FTPFile concept's url is a file, false otherwise.
Parameters: |
$value : | The value to be set. |
|
Exceptions: |
FTPOperationWarning :
(Warning) | If unable to set content of FTPFile. |
FTPOperationFailed :
(Error) | If unable to execute FTP command. |
Sets this FTPFile content to the specified $value.