Home
TeamSite
multiple file copy
nagendra
Hi all,
Authors want multiple files to be copied at once. Currently teamsite(version 5.5.2, os-solaris 8) allows single file/directory copy.
How can I acheive multiple file copy ?
Any suggestions are of great help.
thanks,
nagendra
Find more posts tagged with
Comments
Adam Stoller
Custom menu options are your friends. Create your own custom menu option that cycles through all the selected files and copies them to a specified directory (or branch).
If you're going to maintain the same directory structure in different branches (or copying files from one workarea to another on the same branch) - you can use iwupdate to perform the copy.
If you're going to change the directory structure between the source location and target location - then you'll want to use iwcp to perform the copy - but be warned, iwcp has at times exhibited strange behavior (search through the forums and you should be able to find records of this).
--fish
Senior Consultant, Quotient Inc.
http://www.quotient-inc.com
nagendra
Hi,
Is iwcp can be used for directory copy too??? if not do I need to create directories using mkdir() and then copy the files?
I am getting following error: "must specify a file"
Is there any flags that help me in copying directories using iwcp?
where can I found iwcp documentation?
I did not find any documentation on this. only I found is iwcp -h.
thanks
nagendra
Adam Stoller
Are you or are you not maintaining the directory structure between the source and target of this copy?
Please provide a [reasonably detailed] use-case for what you are trying to accomplish - without that - we're just shooting from the hip in the dark, and likely to blow a hole in someone's foot ;-)
--fish
Senior Consultant, Quotient Inc.
http://www.quotient-inc.com
nagendra
Hi,
I am trying to copy directory and files from one directory to other directory in the same work area, current functionality of teamsite copy is allowing only one at a time but I looking for multiple directory/files to be copied.
thanks
nagendra
Adam Stoller
You need to roll-your-own code then to perform the looping / iteration calling iwcp (or whatever) for each file.
You'll need to create your own directories then too - if you write your code in a orderly fashion you can probably per-determine a list of target directories and then use File:
ath::mkpath() to create them in the new location - and then perform your copies.
--fish
Senior Consultant, Quotient Inc.
http://www.quotient-inc.com
conditional_formatting.rptdesign
nagendra
Hi,
Thank you...
Now I am able to copy the multiple files and directories but I am facing problems in permissions.
when I am using iwcp thru ipl, I am getting different set of permissions than when I use copy option provided in teamsite GUI
thru copy
-rwxrwx--- 1 iwadmin iwsbtwpdcr_node 1030 Feb 7 06:38 test1
but with iwcp in ipl
-rwxrwx--- 1 iwui nobody 1030 Feb 7 06:36 test1
both are in iwadmin log in
The script is going to be used by authors, so how to apply user related permissions on files?
any suggestions how to acheive correct permissions on files?
regards
nagendra
Adam Stoller
Are you invoking your custom menu item through the iw_cgi_wrapper.cgi? (you can find more information about this in the manuals [I think] or search through the forums)
Otherwise - Is the file getting submitted somewhere along the way?
If so - you might be able to just rely on the submit.cfg settings to fix up the owner/group permissions on the file(s).
Otherwise, you'd have to provide additional code in your custom function to explicitly copy such data over.
--fish
Senior Consultant, Quotient Inc.
http://www.quotient-inc.com