FSIL_ImportFiles
Valid for: CANoe DE • CANoe4SW DEFunction Syntax
long FSIL_ImportFiles( char targetPath[], char sourcePath[]); // form 1long FSIL_ImportFiles( dbNode fs, char targetPath[], char sourcePath[]); // form 2
Description
Imports files into the File Server. Adds a file or the content of a local directory to the File Server. Existing directories and files are replaced if they are not write protected.Parameters
- fs: FS simulation node to apply the function
- targetPath:
- Files are copied into this path. The path is relative to the root directory of the File Server.
- If the path is an empty string then the files are copied into root directory of the File Server.
- If the directory does not exist then it is created.
- sourcePath:
- Path of a file or a directory which contains files and directories. Path has to be absolute or relative relating to the folder of the CANoe configuration.
- This file or the content of this directory is copied into the File Server. Thus, you can create a predefined environment for File Server clients.
Return Values
- 0: Property has been set successfully
- < 0: An error has occurred: IL Error Code