Returns the path of a file.
1 file.getPath
<file.getPath>
<file /> !
</file.getPath>
Arguments | |||||
---|---|---|---|---|---|
Name | Type | Required | Unique | Nullable | Description |
Efile | file |
Returns | |
---|---|
Type | Description |
String | Path of the file. |
Example
Print on screen the name of a file.
Copy
<xsql-script name='file_getPath_sample1'> <body> <set name='m_path'> <string>c:<file.separator />jas<file.separator />webstudio.gc</string> </set> <println trim='true'> Path of the file<string.space /><m_path/><string.space />:<string.space /> <file.getPath> <file name='#m_path' type='absolute' /> </file.getPath> </println> </body> </xsql-script>