first commit

This commit is contained in:
CHIEFSOFT\ameye
2024-03-11 18:35:09 -04:00
commit 481c17499d
1371 changed files with 206438 additions and 0 deletions
+12
View File
@@ -0,0 +1,12 @@
'use strict';
const path = require('path');
module.exports = (childPath, parentPath) => {
const relation = path.relative(parentPath, childPath);
return Boolean(
relation &&
relation !== '..' &&
!relation.startsWith(`..${path.sep}`) &&
relation !== path.resolve(childPath)
);
};