Checks if a path is within a specified directory
Path to check
Parent directory
True if childPath is within parentDir
Checks if a path is within a specified directory