$(file)
Description
This built-in function provides various file related operations.
Available Functions
$(file|append|file|content)
Append content to file and return the full path of file.
Example
Our file looks like this.
_01.png)
Script
_02.png)
Output
_03.png)
$(file|asList|file)
Read the content of file as a list where each line of the content is a list item. The
return value is a list separated by nexial.textDelim.
Example
Input File
_04.png)
Script
_05.png)
Output
_06.png)
$(file|content|file)
Read and return the content of file.
Example
Input File
_04.png)
Script
_07.png)
Output
_08.png)
$(file|copy|file|target)
Copy file to target and return the full path of target.
Example
Script
_09.png)
Output File
_10.png)
$(file|delete|file)
Delete file and return its full path.
Example
Script
_11.png)
Output
_12.png)
$(file|dir|file)
Return the parent directory of file.
Example
Script
_13.png)
Output
_14.png)
$(file|lastmod|file)
Return the last modified timestamp (
epoch) of file.
Example
Script
_15.png)
Output
_16.png)
$(file|move|file|target)
Move file to target and return the full path of target.
Example
Script
_17.png)
Output
_18.png)
File moved from data directory to output directory.
_20.png)
$(file|name|file)
Return the file name of file.
Example
Script
_21.png)
Output
_22.png)
$(file|overwrite|file|content)
Overwrite the content of file with content and return the full path of
file. file is created if need be.
Example
Input File
_04.png)
Script
_23.png)
Output File
_24.png)
Output
_25.png)
$(file|prepend|file|content)
Prepend (add to the beginning of file) content to file and return the full
path of file.
Example
Script
_26.png)
Output File
_27.png)
Output
_28.png)
$(file|size|file)
Return the size of file.
Example
Size of DataFile.txt
_29.png)
Script
_30.png)
Output
_31.png)