|
All the file or directory definitions made in component properties and FML function parameters can be absolute or relative to the root directory of the web application.
Absolute definition examples:
Definition
|
Description
|
|Root Directory : /usr/local/etc/documents |
|
The "Root Directory" property of FileQueryDataSource or FileQueryProcess process defined relative absolutely.
|
Copy('c:\documents\customers.doc',
'c:\documents\old_customers.doc')
|
The source and the target file names of the FML Copy() function defined absolutely
|
Delete('/usr/local/etc/documents/200611')
|
The file name defined absolutely for the FML Delete() function
|
Relative definition examples:
Definition
|
Description
|
|Root Directory : documents |
|
The "Root Directory" property of FileQueryDataSource or FileQueryProcess process defined relative to the web applications root directory.
|
Copy('documents\customers.doc',
'documents\old_documents.doc')
|
The source and target file names of the FML Copy() function defined relative to the web applications root directory.
|
If the root directory of the web application is "c:\tomcat\webapps\crm" then the absolute equivalences of the above relative definitions are:
"c:\tomcat\webapps\crm\documents"
"c:\tomcat\webapps\crm\documents\customers.doc"
"c:\tomcat\webapps\crm\documents\old_customers.doc"
Other examples:
Definition
|
Description
|
Copy('/users/local/etc/cart.xml',
'doc/new_cart.xml')
|
Copy file "/users/local/etc/cart.xml" to the "doc" folder under the web applications root directory with name "new_cart.xml"
|
Copy('c:\cart.xml',
'c:\new_docs\new_cart.xml')
|
Copy file "c:\cart.xml" to "c:\new_docs\new_cart.xml".
|
See Temporary File Usage
|