Challenge 17 - Prepare KNIME Training File Set
Level: Medium
Description: You are responsible for creating an educational program for KNIME to be conducted within your company. You plan to create a workflow where participants can learn how to use the "List Files/Folders" node and its utility. Hint: When generating random numbers, the Vernalis KNIME Nodes Extension might be helpful.
As preparation, you need to create dummy data that meets a few requirements, described as follows.
Beginner-friendly objectives:
- Create a specified number of folders (up to 5,000) with unique random numbers of up to 6 digits within a designated directory.
- Use zero-padding to ensure the numbers have consistent digit length.
Intermediate-friendly objective:
- Inside each folder, create one file with a random number of up to 5 digits as its name. Zero-padding is not required, and the file names do not need to be unique.
- The file extension should be (1) the fictional file extension .fzbz if the folder name is a multiple of 3 and the file name contains the number 5, or (2) .csv for all other cases. The contents of each file can be empty.