Restore file hierarchy after 'Dismantle Job'

Post Reply
sascha.koerber
Newbie
Posts: 10
Joined: Mon Mar 19, 2012 6:34 pm

Restore file hierarchy after 'Dismantle Job'

Post by sascha.koerber »

Hello friends,



i am trying to achive something, that should be rather easy i guess, but still it is giving me a hard time.



I want to pull folders from an ftp, sort out some (XML-) files and afterwards write the rest of the files back to a folder with the same name to another hotfolder.



Lets say the folders on the ftp server looks like this:



1234567890 Picture of Workflow



Where in the flow and how do i need to "store" the folder-name to re-use it in "Set hierarchy" right? I guess its very simple, but i cant find my flaw, sorry! :-(







Thanks for your help!
freddyp
Advanced member
Posts: 413
Joined: Thu Feb 09, 2012 3:53 pm

Restore file hierarchy after 'Dismantle Job'

Post by freddyp »

Your reasoning seems correct. Check the property "Folder levels", both in the "FTP receive" and in the "Submit hierarchy" (File Input in your drawing). The default is 1. This means that whatever the length is of your hierarchy path only the top element is used.



Getting the level right both at the start and at the end is a source of many mistakes. Without seeing the properties of the flow this is just a guess of course.



Freddy
sascha.koerber
Newbie
Posts: 10
Joined: Mon Mar 19, 2012 6:34 pm

Restore file hierarchy after 'Dismantle Job'

Post by sascha.koerber »

Thanks, Freddyp. That worked. I obviousely forgot to check the folder levels in all dependant tools. Now it works, woohoo!
Post Reply