Anons79 Mini Shell

Directory : /home/aplikasiposinfo/www/hamrishealth.aplikasipos.info/node_modules/is-path-inside/
Upload File :
Current File : /home/aplikasiposinfo/www/hamrishealth.aplikasipos.info/node_modules/is-path-inside/index.js

'use strict';
const path = require('path');

module.exports = (childPath, parentPath) => {
	childPath = path.resolve(childPath);
	parentPath = path.resolve(parentPath);

	if (process.platform === 'win32') {
		childPath = childPath.toLowerCase();
		parentPath = parentPath.toLowerCase();
	}

	if (childPath === parentPath) {
		return false;
	}

	childPath += path.sep;
	parentPath += path.sep;

	return childPath.startsWith(parentPath);
};

Anons79 File Manager Version 1.0, Coded By Anons79
Email: [email protected]