You use fromLocalTmpFile to specify a temporary source file for file transfer from "remote" to "remote" (see “Types of file transfer” (transferFile)).
The temporary file is simply a buffer under the local ID. This temporary file is deleted automatically.
The data, maxRecSize, recordFormat, ccsname and autoDataSpec specifications in the ffromRemoteFile toLocalTmpFile activity apply implicitly. When a TmpFile is created from ffromRemoteFile then these specifications are inherited.
Restrictions
You may only use fromLocalTmpFile after a fromRemoteFile toLocalTmpFile activity since the file TmpFile already exists and must be accessible in the current context. For more information, see section “fromRemoteFile” and section “toLocalTmpFile”.
Format
|
Attributes
Name | Value | Meaning |
use | string | Reference to a file TmpFile which can be accessed in the current context. This file must previously have been created with a transferFile using toLocalTmpFile. |
Example
|
|
In the example, the files in the directory frg_eis_19/datastore are copied to the relevant frg_eis_19/targetDir target directory on the various computers.
listDirectory is used to identify the files on the FileServer.
The first foreach activity works through all the files identified on the FileServer. Each file is copied to a temporary file tmpFile.
In the second foreach activity, each temporary file is copied to the target directory frg_eis_19/targetDir on the RemoteHost.
Finally, the associated temporary file tmpFile is deleted.