# CopyFiles Component | Not Working

**URL:** <https://forum.cloverdx.com/t/copyfiles-component-not-working/1370>\
**Category:** CloverDX Platform\
**Created:** [March 19, 2014, 12:00am UTC](https://forum.cloverdx.com/t/copyfiles-component-not-working/1370 "2014-03-19T00:00:00Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![karan\_babaria](https://avatars.discourse-cdn.com/v4/letter/k/9fc348/32.png) [@karan\_babaria](https://forum.cloverdx.com/u/karan_babaria)\
**Post date:** [March 19, 2014, 12:00am UTC](https://forum.cloverdx.com/t/copyfiles-component-not-working/1370/1 "2014-03-19T00:00:00Z")

</div>

Hi,  
I have a scenario where I am downloading a Zip file from a remote server, and would like to copy this downloaded file a Linux Box user specific location.

This Component is used in a Graph with only this component, no connectors.

In the component, my configurations for the sftp are as:  
sourceUrl - http:///  
this if I execute in web browser gives me option to download xxx.tar.gz file

targetUrl - sftp://:@:/  
overWrite - true  
createParentDirectories - true

But, it always gives me error

Copy failed  
Failed to obtain target file info  
Failed to obtain file info

Can anyone help me resolve this issue? Do I need config changes or am I using the wrong component ?  
Please Help.  
Thanks  
Karan

---

<div class="post-metadata">

**Author:** ![slechtaj](https://avatars.discourse-cdn.com/v4/letter/s/59ef9b/32.png) [@slechtaj](https://forum.cloverdx.com/u/slechtaj)\
**Post date:** [March 19, 2014, 11:46pm UTC](https://forum.cloverdx.com/t/copyfiles-component-not-working/1370/2 "2014-03-19T23:46:05Z")

</div>

Hi Karan,

In your target URL, can you clarify what the placeholders (server and host) stands for? The SFTP URI scheme should look like this:

```auto
sftp://[user:password@]host[:port]/<path>/<file>

```

It would be helpful if you placed here a sample SFTP URL you use.

---

<div class="post-metadata">

**Author:** ![karan\_babaria](https://avatars.discourse-cdn.com/v4/letter/k/9fc348/32.png) [@karan\_babaria](https://forum.cloverdx.com/u/karan_babaria)\
**Post date:** [March 20, 2014, 3:11am UTC](https://forum.cloverdx.com/t/copyfiles-component-not-working/1370/3 "2014-03-20T03:11:22Z")

</div>

> Hi Karan,
> 
> In your target URL, can you clarify what the placeholders (server and host) stands for? The SFTP URI scheme should look like this:
> 
> ```auto
> sftp://[user:password@]host[:port]/<path>/<file>
> 
> ```
> 
> It would be helpful if you placed here a sample SFTP URL you use.
> 
> “slechtaj”

Sample TargetUrl I’m using is - sftp://testUser:password123@localdevapp … estETL/out

---

<div class="post-metadata">

**Author:** ![slechtaj](https://avatars.discourse-cdn.com/v4/letter/s/59ef9b/32.png) [@slechtaj](https://forum.cloverdx.com/u/slechtaj)\
**Post date:** [March 21, 2014, 9:45am UTC](https://forum.cloverdx.com/t/copyfiles-component-not-working/1370/4 "2014-03-21T09:45:52Z")

</div>

Hi Karan,

I’m able to reproduce the issue by setting an incorrect port. Can you test the same connection from another client?
