Answer the question
In order to leave comments, you need to log in
How to wait for the file to be saved?
I use the library for Node node-fluent-ffmpeg
. I create a file in two formats, wrapped the functions in promises.
I do
Promise.all([makeWebm(file, slug), makeMp4(file, slug)])
then
I work with the file further. So, sometimes, after a time, referring to the newly created file, then
I throw an error Error: ENOENT: no such file or directory,
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question