Hello,
I want to attach files to a site. For this there is the function sendFile in the rapidStudio.
Now I need to get the files from a location of the server. How can I access the local files (file system) of the server with the BLO of the rapidStudio.
the “file” parameter can contain the absolute path to your file in the local file system on the server.
For details, see also the documentation of the sendFile() function in the online help of the rapidM2M Studio.
Hello Johannes,
to list all files of a directory, you can use the fs module of nodejs.
The function you are looking for is the readdir and for moving the rename function.
For easier usage of the file functions you can also use the fs-extra module from npm.