Overwrite vs. Filename and extension check

Hello there,

When exporting using the following method:
Adobe Premiere Pro UXP EncoderManager - exportSequence,

how can I check if the exported file already exists before overwriting it?

In the CEP panel, the getExportFileExtension function was available to retrieve the output filename and extension before rendering, allowing me to check whether a file already existed at the output path.

How can this be achieved in UXP?

Thank you very much! :hugs:

Hi Joan!

I would say for this time, the best solution will be available if you are willing to wait for just a little bit more… We are going to have new release of APIs really really soon!

1 Like

You might be able to use the fs module:
https://developer.adobe.com/premiere-pro/uxp/uxp-api/reference-js/Modules/fs/

1 Like

Great, that’s exactly what I did. Thanks, Mike.
The main issue was that I couldn’t know the full name because there wasn’t any instruction to determine the extension before exporting.
This has now been resolved.

1 Like