Script functions reference > Script functions in alphabetical order > C > CurrInSavePath

CurrInSavePath
Syntax
CurrInSavePath();
Description
When using a Directory input connector, you can copy the input files to backup directory. You use the Save Path connector setting to specify the backup directory. All files are given unique names when copied to the backup directory. The CurrInSavePath function is used to retrieve the new file names.
Returns
A string.
Example
Specify the following Save Path for the Directory input connector:
C:\safekeep
Then use the CurrInSavePath function to retrieve the new file name:
$keptfile = CurrInSavePath(); 
log (1, "SavePath" + $keptfile);
$keptfile may contain for example
"C:\safekeep\ds2A4FE1D09210310251010018510.bak"
OpenText StreamServe 5.6 Updated: 2013-03-01