Add jsdocs

This commit is contained in:
advplyr 2023-10-23 17:28:59 -05:00
parent 976ae502bb
commit 9a477a9270

View File

@ -19,6 +19,13 @@ const filePathToPOSIX = (path) => {
}
module.exports.filePathToPOSIX = filePathToPOSIX
/**
* Check path is a child of or equal to another path
*
* @param {string} parentPath
* @param {string} childPath
* @returns {boolean}
*/
function isSameOrSubPath(parentPath, childPath) {
parentPath = filePathToPOSIX(parentPath)
childPath = filePathToPOSIX(childPath)