Skip to main content
Solved

Delete files from sourcefolders after writing and copying


franco69
Contributor
Forum|alt.badge.img+6

Hi guys......

i have a workflow where i source .xls files out from 3 different folders  e.g. C:\\temp\\PA8\\Lists, C:\\temp\\PA9\\Lists, C:\\temp\\PA7\\Lists

 

and split them (about an specified attribute) into many .xls files into another folder

e.g C:\\temp\\PA8\\splits, C:\\temp\\PA9\\splits, C:\\temp\\PA9\\splits

 

and additionaly i copy the source files with the filecopy writer into another folder

e.g C:\\temp\\PA8\\done, C:\\temp\\PA9\\done, C:\\temp\\PA9\\done

 

all that is working well!!!

 

BUT i want to empty the source folder after this processing in the same workflow......is this possible.....i have tried the Custom transformer File Deleter but i didnt get it how it works....any solutions or workarounds?

 

Cheers and Greetz

Franco

Best answer by muzhnasto

Hi @franco69​ why can't you set the MOVE parameter instead of COPY at this stage?

"and additionaly i copy the source files with the filecopy writer into another folder

e.g C:\\temp\\PA8\\done, C:\\temp\\PA9\\done, C:\\temp\\PA9\\done"

imageor read https://community.safe.com/s/question/0D54Q000080hRpdSAE/file-copy-delete

View original
Did this help you find an answer to your question?

2 replies

muzhnasto
Contributor
Forum|alt.badge.img+12
  • Contributor
  • Best Answer
  • July 15, 2022

Hi @franco69​ why can't you set the MOVE parameter instead of COPY at this stage?

"and additionaly i copy the source files with the filecopy writer into another folder

e.g C:\\temp\\PA8\\done, C:\\temp\\PA9\\done, C:\\temp\\PA9\\done"

imageor read https://community.safe.com/s/question/0D54Q000080hRpdSAE/file-copy-delete


franco69
Contributor
Forum|alt.badge.img+6
  • Author
  • Contributor
  • July 15, 2022
muzhnasto wrote:

Hi @franco69​ why can't you set the MOVE parameter instead of COPY at this stage?

"and additionaly i copy the source files with the filecopy writer into another folder

e.g C:\\temp\\PA8\\done, C:\\temp\\PA9\\done, C:\\temp\\PA9\\done"

imageor read https://community.safe.com/s/question/0D54Q000080hRpdSAE/file-copy-delete

oh.....i didnt see that.......cool.....thx for that

you saved my day


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings