bany 0645acf21a
upgrade: docker-compose to v2 (#30)
* upgrade: docker-compose
- user docker compose instead

* remove: yarn and clean format js file
2023-07-23 12:05:52 +09:00

13 lines
290 B
JavaScript

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