Solutions to “Just KNIME It!” Challenge 17 - Season 4

:sun_with_face: New Wednesday, new Just KNIME It! challenge! :sunny:

:sparkles: Teaching data science is not always glamorous: educators often have to spend a lot of time creating mock data to explain a concept, or a functionality, to students. This week, you’ll wear your teacher hat and create a file structure to explain the List Files/Folders node to your audience. Get ready to exercise your file generation skills, including filename processing. :file_folder:

Here is the challenge. Let’s use this thread to post our solutions to it, which should be uploaded to your public KNIME Hub spaces with tag JKISeason4-17 .

:sos: Need help with tags? To add tag JKISeason4-17 to your workflow, go to the description panel in KNIME Analytics Platform, click the pencil to edit it, and you will see the option for adding tags right there. :blush: Let us know if you have any problems!

1 Like

I really really loved this challenge. You should give it a hard thought how to solve this, and it’s really useful to know how handy KNIME is handling files and folders (and names).

My solution to the challenge:

My workflow (tried to be straightforward with the annotations and comments):

The created folders:

Example folders:

I think my solution is not optimal, I’m really curious the other solutions and approaches. And of course I really appreciate any suggestion regarding my solution. :slight_smile:

EDIT: My laptop didn’t like this challenge. I had to restart it, after creating the five thousand folders… :smiley:

3 Likes

1 Like

Find my submission : https://hub.knime.com/s/2CdiISIn_v-eaOgi .. just for ease i have filtered to 25 rows ( folders ) , as you remove the filter , you head the highway.

1 Like

Hi all,

Nice to have a different challenge with data generation.
Solution is here: https://hub.knime.com/s/4-ols514Q6qZqeyt

I used a Parallel Chunk Loop to create the folders quicker, using multiple threads.

And as usual, I love the expression node to do quick check/calculation/changes!

Enjoy everyone

Cheers

Jerome

Have you tried the Parallel Chunk Loop ? Maybe quicker - not sure about computer resources though.

For me, the longest part is to delete the folders and files! Takes longer than creating them :slight_smile: