public static function GetNameWithoutExtension( string $file, bool $doubleExtension = false )
   {
      if ( \FALSE === ( $ext = static::GetExtension( $file, $doubleExtension ) ) )
      {
         return \basename( $file );
      }
      return \substr( \basename( $file ), 0, -\strlen( $ext ) );
   }