$ignore Files/paths to ignore (no regex) * * @return int * * @since 1.0.0 */ public static function count(string $path, bool $recursive = true, array $ignore = []) : int { return static::getClassType($path)::count($path, $recursive, $ignore); } /** * Make name/path operating system safe. * * @param string $path Path of the resource * @param string $replace Replace invalid chars with * @param string $invalid Invalid chars to sanitize * * @return string * * @since 1.0.0 */ public static function sanitize(string $path, string $replace = '', string $invalid = '/[^\w\s\d\.\-_~,;\/\[\]\(\]]/') : string { return static::getClassType($path)::sanitize($path, $replace); } }