feat(build): make permissions checks less strict

This commit is contained in:
2026-08-01 13:48:26 +02:00
committed by jakob.scheid
parent 8b6abf9c90
commit 58fdbfc35b
3 changed files with 13 additions and 35 deletions
-10
View File
@@ -16,16 +16,6 @@ limitations under the License.
import { access, constants, stat } from 'node:fs/promises';
export const checkFileReadAccess = async function checkFileWriteAccess (path) {
try {
await access(path, constants.F_OK | constants.R_OK);
return true;
} catch (err) {
if (err.code === 'ENOENT' || err.code === 'EACCES') return false;
else throw err;
}
};
export const exists = async function exists (path) {
try {
await access(path, constants.F_OK);