Commit fb8faaeb by Pragati Upadhyay

finding bug on test server....

parent 136cc94d
......@@ -63,6 +63,7 @@ module.exports.createVideoFromImages = async function (imageArr, options) {
////// to delete the frames that are created //////
if (deleteImages)
frames.forEach((filePath) => {
console.log("🚀 ~ frames.forEach ~ filePath:", filePath)
fs.access(filePath, fs.constants.F_OK, (err) => {
if (!err) {
// File exists, proceed with deletion
......
......@@ -32,6 +32,7 @@ module.exports.uploadToAwsS3 = async function (localPath, remotePath, options) {
});
if (options && !options.preventUnlink) {
console.log("🚀 ~ localPath:", localPath)
try { Fs.unlinkSync(localPath) }
catch (err) { console.log(err) }
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment