Create nested folders on "Archive - Compress" task - VisualCron - Forum

Community forum

Brad C.
2018-07-09T15:27:11Z
It would be fantastic if the "Archive - Compress" task would automatically create any needed folders/directories upon attempting to compress.

We are using a Job-specific variable that will allow us to "archive" our EDI data files in a very nice convention. The only problem is that we must create the folder(s) first. There are some tasks that we've found require that, while others do not.

...\Archive\JobKeyVariable\CurrentYear\Archive-JobKeyVariable-2018-07.zip

We've also gotten a little creative with our variables so that we can use further nested paths.

...\Archive\JobKey\Variable\CurrentYear\Archive-JobKey-Variable-2018-07.zip

This all works great, and as expected. It just requires a "Create Folder" task first. We use the Path VC variable to get the path from the same job-specific variable..
{PATH(GetDirectoryName|{USERVAR(Jobs.Path.Archive.Current)})}

It would be awesome if the "Archive - Compress" task would either automatically provide a way to create the nested folders underneath the ZIP file, or at least give you an option to allow it to do that.

Thanks,
Brad
Scroll to Top