Hi all,
I receive zip file contains PDFs and assembly InDesign files with its folders Links and Documents Fonts.
I made a flow to unzip file, and to Keep only the PDFs files : it's ok. But it keep too PDFs that are inside the links folder from InDesign, when a PDF is imported in a .indd files.
Is there a way to delete after unzip function the folders " Links" and "Documents Fonts" . I used the Delete module, but it doesn't delete folders, only files.
Thanks,
Christian
Delete specific folders after unzip
Delete specific folders after unzip
- Attachments
-
- flow.png (121.99 KiB) Viewed 3311 times
Re: Delete specific folders after unzip
It is a useful feature request for a next version, but that will not be for the very near future.
If the name of the folder is always the same (Links) I suggest to use "Execute command" to execute a shell script or batch file that removes the Links folder. The "Arguments" should contain "[Job.Path]" as the first parameter passed to the shell script/batch file (do not forget the quotes).
On OSX the shell script will look like this:
#!/bin/bash
cd "$1"
rm -R Links
Do not forget to do chmod +x on the shell script!
And on Windows the batch file would be:
cd /d %1
del /s /f /q Links
NOT TESTED.
There is a less efficient possibility using "Ungroup job" and "Assemble job" so try this first.
If the name of the folder is always the same (Links) I suggest to use "Execute command" to execute a shell script or batch file that removes the Links folder. The "Arguments" should contain "[Job.Path]" as the first parameter passed to the shell script/batch file (do not forget the quotes).
On OSX the shell script will look like this:
#!/bin/bash
cd "$1"
rm -R Links
Do not forget to do chmod +x on the shell script!
And on Windows the batch file would be:
cd /d %1
del /s /f /q Links
NOT TESTED.
There is a less efficient possibility using "Ungroup job" and "Assemble job" so try this first.
-
- Newbie
- Posts: 15
- Joined: Wed Nov 30, 2022 1:15 pm
Re: Delete specific folders after unzip
Thanks Freddyp for your answer,
Finally I found a way, I made it with 2 flows :
- First unzip the files in archive hierarchy
- Second flow submit the archive hierarchy and then define conditions to keep only needed files, all others goes to Trash.
Regards,
Christian
Finally I found a way, I made it with 2 flows :
- First unzip the files in archive hierarchy
- Second flow submit the archive hierarchy and then define conditions to keep only needed files, all others goes to Trash.
Regards,
Christian
Re: Delete specific folders after unzip
Good thinking! Thanks for the feedback.