public static function rrmdir($dir, $removeDir = false, $except = []) {
        if (is_dir($dir)) {
            $objects = scandir($dir);
            foreach ($objects as $object) {
                if ($object != "." && $object != "..") {
                    if (filetype($dir . "/" . $object) == "dir") {
                        Terminal::rrmdir($dir . "/" . $object, $removeDir, $except);

                        if ($removeDir == true) {
                            rmdir($dir . "/" . $object . '/');
                        }
                    }
                    else {
                        if (!in_array($object, $except)) {
                            unlink($dir . "/" . $object);
                        }
                    }
                }
            }
            reset($objects);
        }
    }