Projekt

Obecné

Profil

Stáhnout (319 Bajtů) Statistiky
| Větev: | Revize:
1
'use strict';
2
const path = require('path');
3
const pathIsInside = require('path-is-inside');
4

    
5
module.exports = (childPath, parentPath) => {
6
	childPath = path.resolve(childPath);
7
	parentPath = path.resolve(parentPath);
8

    
9
	if (childPath === parentPath) {
10
		return false;
11
	}
12

    
13
	return pathIsInside(childPath, parentPath);
14
};
(2-2/5)