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

Hi @kerrishotts

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:
“Error: Route not found”

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

@AndreasResch also found your post for this error “Error: Route not found”.
Did you find a solution at the time?

Hi @kerrishotts

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:

  1. Read the original file
  2. Write the data to the new location

copyTo should be doing this for you, but you’ll not want to wait until we have a fix in the product to release the plugin.

Thanks @kerrishotts
So there is a bug in the API?
I was looking for that confirmation for a while.

I tried your workaround and it works great.
Thanks again!

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