Dashboard sipadu mbip
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

1234567891011121314
  1. 'use strict';
  2. const path = require('path');
  3. const pathIsInside = require('path-is-inside');
  4. module.exports = (childPath, parentPath) => {
  5. childPath = path.resolve(childPath);
  6. parentPath = path.resolve(parentPath);
  7. if (childPath === parentPath) {
  8. return false;
  9. }
  10. return pathIsInside(childPath, parentPath);
  11. };