The swiss army knife of lossless video/audio editing
Add check for EACCES too
Mikael Finstadd45327b1a3a4
diff --git a/src/util.js b/src/util.jsindex eb2b1397..9576a938 100644--- a/src/util.js+++ b/src/util.js@@ -78,8 +78,8 @@ export async function checkDirWriteAccess(dirPath) {try {await fs.access(dirPath, fs.constants.W_OK);} catch (err) {- if (err.code === 'EPERM') return false;- // if (err.code === 'EACCES') return false;+ if (err.code === 'EPERM') return false; // Thrown on Mac (MAS build) when user has not yet allowed access+ if (err.code === 'EACCES') return false; // Thrown on Linux when user doesn't have access to output dirconsole.error(err);}return true;