# Entry.copyTo "Error: no such file or directory"

Not sure if I’m missing something obvious here but calling
entry.copyTo(folderEntry)
is returning an error:
“Error: no such file or directory”

In this case “entry” is a file and I can successfully see it in the debugger.
“folderEntry” is as the name says and is also with the correct value when debugging.

Is this a known issue or did I miss something?

Thanks!!

Henrique \\ TMMW
Text Replacer for Premiere Pro | Clips Exporter | Thumbs Up | Selector for Premiere Pro

Could you check this issue above when you have a minute?
Been trying this one for a few weeks now and always get this error.

Thanks!

Henrique \ TMMW
Text Replacer for Premiere Pro | Clips Exporter | Thumbs Up | Selector for Premiere Pro

What’s the type of `folderEntry`? If it’s a path instead of a `FolderEntry`, this would fail. Might also help to see more of the surrounding code to know how `entry` and `folderEntry` are being set.

I’ve created a sample plugin just with that code to replicate the issue.
EntryCopyToIssue.zip (57.4 KB)

While testing I also tried copying to the plugin Data folder and I now get another error:

Both errors can be test with this sample plugin.

Here is a screenshot of the debugger:

You can see in the console I checked both file and folder, while paused, and they are both Entries.

Let me know if you need any additional info.

Thanks @kerrishotts

Did you find a solution at the time?

Any chance you could help me solve this one?
It’s the last thing I need to be able to release the plugin.

Many thanks

Henrique \\ TMMW
Text Replacer for Premiere Pro | Clips Exporter | Thumbs Up | Selector for Premiere Pro

I think you could work around it by: