芝麻web文件管理V1.00
编辑当前文件:/home/freeclou/app.optimyar.com/backend/node_modules/is-path-inside/index.js
'use strict'; const path = require('path'); const pathIsInside = require('path-is-inside'); module.exports = (childPath, parentPath) => { childPath = path.resolve(childPath); parentPath = path.resolve(parentPath); if (childPath === parentPath) { return false; } return pathIsInside(childPath, parentPath); };