
The Function Block FS_SCANDIR reads the contents from a directory.
The file system must have been initialized beforehand using FS_INIT. All operations are performed asynchronously per configured storage medium.
A positive edge triggers a search of the directory on the storage medium.
Defines the device from which to access the files. The device is used per project and can be managed in the context menu under Project External Storage.
Specifies the path to the folder on the storage medium. The path corresponds to a Unix file path in UTF-8 format, if this is supported. The path is represented as follows:
Folder/Subfolder
The output returns a pulse upon success to perform the next operation. The pulse occurs when the process ends, even if an error has occurred.
Returns a list of found folders separated by a line break. The state is stored for later use.
Returns a list of found files separated by a line break. The state is stored for later use.
In case of an error, returns a text with an error message. This is FALSE if no error has occurred. The state is stored for later use.
Possible causes: