An existing directory to check the child path against.
An existing or non-existent path to check against the parentDir path.
Pass true if you want an exception to be thrown in the child path does not exist. Defaults to false.
true if the child path is a descendant of parentDir
Check if
childpath is a file or subdirectory underneath theparentDirdirectory. TheparentDirparam must be a valid path and a directory. Thechildpath does not need to exist, but note that if the child path is relative, it will be resolved using the current working directory. Transform or resolve the child path before passing into this method to avoid using current working directory.