feat(build): make permissions checks less strict

This commit is contained in:
jakob.scheid authored and jakob.scheid committed 2026-08-01 13:48:26 +02:00
1 parent 8b6abf9c90
commit 58fdbfc35b
3 files changed
+13 -35

No files matched your search

-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);