Remove hidden files ".DS_store" from a folder

Post Reply
diguimfodera
Newbie
Posts: 16
Joined: Thu Jan 21, 2016 1:34 am

Remove hidden files ".DS_store" from a folder

Post by diguimfodera »

Hi every one!
My flows works with MAC and PC files. So, for MAC files, there is hidden files calls ".DS_Store". When I use "Ungroup" to process the PDF files for example "convert text to outlines" the pitstop server don't process this file and send it to Problem folder. So, when assembly job, re-mounting de original folder, always there is a missing file (in this case .DS_Store..) so the flows become slowing (waiting the time-out). The time out is high, like 60s, 120s etc, because I have complex flows and many files are handled on it.

Is there some way to remove this hidden file ".DS_store" from the original folder before sending it to process a completely flow?
How do I get it? Thanks!
essexmate
Member
Posts: 30
Joined: Tue Sep 05, 2017 4:41 pm

Re: Remove hidden files ".DS_store" from a folder

Post by essexmate »

Can't you just route files with extension ".DS_Store" direct to the Assemble job as soon as they are Ungrouped? Then they won't go through pitstop.
User avatar
ezFlow
Newbie
Posts: 9
Joined: Mon Jun 18, 2018 6:51 pm

Re: Remove hidden files ".DS_store" from a folder

Post by ezFlow »

Hello,

First save the amount of files in job - 1 in a private data, ex nbfiles=[Switch.Calculation:Expression="[Job.FileCount]-1"]
Then ungroup the job, filter out the ".DS_Store" and process the PDF files.
Then Assemble the job again.
Scheme Ungrouped job, and use [Job.PrivateData:Key="nbfiles"] for the number of files.
Padawan
Advanced member
Posts: 358
Joined: Mon Jun 12, 2017 8:48 pm
Location: Belgium
Contact:

Re: Remove hidden files ".DS_store" from a folder

Post by Padawan »

Or another option: I usually use the Execute Command tool to recursively search for those files in the folder and remove them. This way you only need one flow element.

On mac these Execute Command settings should do the trick
Image

On Windows you need to create a bat file with this content:
cd %1
del /s *DS_Store*

And then point the execute command to the bat file:
Image
diguimfodera
Newbie
Posts: 16
Joined: Thu Jan 21, 2016 1:34 am

Re: Remove hidden files ".DS_store" from a folder

Post by diguimfodera »

ezFlow wrote: Mon Jun 18, 2018 7:17 pm Hello,

First save the amount of files in job - 1 in a private data, ex nbfiles=[Switch.Calculation:Expression="[Job.FileCount]-1"]
Then ungroup the job, filter out the ".DS_Store" and process the PDF files.
Then Assemble the job again.
Scheme Ungrouped job, and use [Job.PrivateData:Key="nbfiles"] for the number of files.
Very good idea.Thanks I'II try it. Thanks
diguimfodera
Newbie
Posts: 16
Joined: Thu Jan 21, 2016 1:34 am

Re: Remove hidden files ".DS_store" from a folder

Post by diguimfodera »

Padawan wrote: Tue Jun 19, 2018 9:52 am Or another option: I usually use the Execute Command tool to recursively search for those files in the folder and remove them. This way you only need one flow element.

On mac these Execute Command settings should do the trick
Image

On Windows you need to create a bat file with this content:
cd %1
del /s *DS_Store*

And then point the execute command to the bat file:
Image
Very nice way. I'II try it too. Thanks!!
diguimfodera
Newbie
Posts: 16
Joined: Thu Jan 21, 2016 1:34 am

Re: Remove hidden files ".DS_store" from a folder

Post by diguimfodera »

Padawan wrote: Tue Jun 19, 2018 9:52 am Or another option: I usually use the Execute Command tool to recursively search for those files in the folder and remove them. This way you only need one flow element.

On mac these Execute Command settings should do the trick
Image

On Windows you need to create a bat file with this content:
cd %1
del /s *DS_Store*

And then point the execute command to the bat file:
Image

Padawan, great tip! It worked very well. I tested it including other unwanted kind of files (thumbs.db) .
Just one element on flow I solved my problem.
Thanks!!
Post Reply