Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
THRUST SERVICES & TOOLS
CLOUD EDITIONS
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Web CMS (TeamSite)
How to move a file from one branch to another
infoForDj
Hi,
I have to move a file attached to the workflow from one branch to another. How can I do this through a perl script?
Thanks,
Dhruv
Find more posts tagged with
Comments
Adam Stoller
If the file is staying in the same relative location to the root of the branch/workarea - consider using either an updatetask or the iwupdate CLT.
If the file is going to be changing its relative location or name in the target branch/workarea - you can use iwupdate followed by iwrename
When you say "move" do you mean "move" (as in remove from one location after copying the contents to another location) or do you mean "copy" (as in replicate the asset in two, or more, locations) ? If the former, then you'll want to make sure you remove the file from the original location after using iwupdate.
Remember - any given task can only refer to files within a single branch/workarea - so if you want to have this moved file processed within the same workflow - you will need to have concurrent tasks or a nested workflow to be able to process both the original files associated with the workflow and those that were moved to another location.
--fish
Senior Consultant, Quotient Inc.
http://www.quotient-inc.com
navjot
Hi,
I have a similar requirement
I wish to write a external program that can
a. Move the dcr from WA in BranchA to WA in BranchB.
b. Get the latest dcr from STAGING to BranchA.
regards
Navjot Singh
Adam Stoller
Okay - you have the same requirement - great. Are you doing something about it or expecting someone here to write it for you?
I believe I've outlined (at a moderately high level) the steps you need to take - but ultimately it's up to you to figure out what you need for your environment and write it, test it, document it, etc.
--fish
Senior Consultant, Quotient Inc.
http://www.quotient-inc.com