mirror of
https://github.com/henrywhitaker3/Speedtest-Tracker.git
synced 2025-12-24 22:39:26 +01:00
15 lines
319 B
JavaScript
Vendored
15 lines
319 B
JavaScript
Vendored
'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);
|
|
};
|