Hi everyone,
I'm trying to automate a process which consists of downloading files from a website.
So, I manage to collect links of the files to download.
Then I use the download tool to download files but I am dealing with an issues to save files into dynamic directory.
Actually, I would like to be able to save the files in a dynamic directory name.
The problem is that the directory does not exist, I would like to built this directory bases on url files.
I don't know if it's clear, so I'm posting you a photo of the workflow as an example.
So, the directory is base on the year of each files. But it doesn't exist yet. There is a solution to create the directory automatically ? Thank you for your help.
Hi @Vanderleck16 ,
The first bit of advice I would give is don't create folders based on, for example, date. It's totally unnecessary and creates a convoluted and complicated folder structure.
However, if you need to create that folder structure on the fly, the only out of the box tool that can actually create the folder would be the render tool.
To do this, you need to create a formula which dynamically creates the folder to which you are going to drop the new files. Temp is fine, as you are going to read them back in and render them as whatever output you want using the Render tool. For this you will then to create another formula which creates the full path of the destination, including the new dynamic folder. You can then render the outputs into that fullpath directory.
M.