iwcp question
![jeffldavis2](https://secure.gravatar.com/avatar/00542f49ff26f941248885b52452ad3d/?default=https%3A%2F%2Fvanillicon.com%2Fcc31493f3003ec41383bff0eefa94578_200.png&rating=g&size=200)
jeffldavis2
Member
In my perl script I am using iwcp to copy files/folders from workarea folders. This script is executed by a link in file menu.
with this command I noticed that files are copied just fine but for some reason the folders are not copied? here is piece of code I am using.
$src="$fpath\\$file";
$dst = "$temp_dir\\$file";
$cmd = "iwcp $src $dst";
$cmdx = `$cmd 2>&1`;
Do we need add any additional switches to the iwcp command like -r to copy the directories? any ideas?
with this command I noticed that files are copied just fine but for some reason the folders are not copied? here is piece of code I am using.
$src="$fpath\\$file";
$dst = "$temp_dir\\$file";
$cmd = "iwcp $src $dst";
$cmdx = `$cmd 2>&1`;
Do we need add any additional switches to the iwcp command like -r to copy the directories? any ideas?
0
Comments
-
Sorry about the question clarity.
I need to read the directory (Branch/Workarea/ITS) and dump the contents into a temporary folder (Branch/Workarea/Temp Folder)
For this, in my perl script, I am looping through folder(Branch/Workarea/ITS) and calling iwcp to copy the contents into (Branch/Workarea/Temp Folder). While looping, I may encounter file or folder it doesn't matter.
Right now, it's just copying the files but not folders.
My question is, does 'iwcp' works for copying the folders?
Thanks
-Jeff0 -
Thanks for reply. I will try it out.0
-
I'm glad to see that they finally documented iwcp in the 6.7.1SP1 CLT manual ...It does if you use the -r option (and start at the top of the dir you want to copy) 0
Categories
- All Categories
- 117 Developer Announcements
- 52 Articles
- 145 General Questions
- 132 Services
- 56 OpenText Hackathon
- 35 Developer Tools
- 20.6K Analytics
- 4.2K AppWorks
- 8.9K Extended ECM
- 912 Cloud Fax and Notifications
- 81 Digital Asset Management
- 9.3K Documentum
- 29 eDOCS
- 162 Exstream
- 39.8K TeamSite
- 1.7K Web Experience Management
- 4 XM Fax
TeamSite Developer Resources
If you are interested in gaining full access to the content, you can register for a My Support account here.
- Docker Automation
- LiveSite Content Services (LSCS) REST API
- Single Page Application (SPA) Modules
- TeamSite Add-ons
If you are interested in gaining full access to the content, you can register for a My Support account here.