public static function isSubDirectoryOf(array $subDir, array $parentDir) : bool
    {
        foreach ($parentDir as $index => $dir) {
            if (!isset($subDir[$index]) || $dir !== $subDir[$index]) {
                return false;
            }
        }
        return true;
    }
public static function isSubDirectoryOf(array $subDir, array $parentDir) : bool
    {
        foreach ($parentDir as $index => $dir) {
            if (!isset($subDir[$index]) || $dir !== $subDir[$index]) {
                return false;
            }
        }
        return true;
    }
public static function isSubDirectoryOf ( array $ subDir , array $ parentDir ) : bool { foreach ( $ parentDir as $ index => $ dir ) { if ( ! isset ( $ subDir [ $ index ] ) || $ dir !== $ subDir [ $ index ] ) { return false ; } } return true ; }
Is the given subDir a sub directory of given parentDir.

@param  array $subDir
@param  array $parentDir
@return bool
Is the given subDir a sub directory of given parentDir .