def METHOD_NAME( dir : str, verbose : bool ) :
    if verbose :
        print( '\nfixing directory: "{}"'.format( dir ) )
    if os.path.isdir( dir ) :
        sra_data_file = "{}{}{}.sra".format( dir, os.sep, dir )
        if os.path.isfile( sra_data_file ) :
            if verbose :
                print( "{} found ... stop".format( sra_data_file ) )
        else :
            if verbose :
                print( "{} not found ... continue".format( sra_data_file ) )
            sra_cache_file = "{}{}{}.sra.vdbcache".format( dir, os.sep, dir )
            if os.path.isfile( sra_cache_file ) :
                if verbose :
                    print( "{} found ... stop".format( sra_cache_file ) )
            else :
                if verbose :
                    print( "{} not found ... continue".format( sra_cache_file ) )
                max_version = get_max_vers( dir, verbose )
                if verbose :
                    print( "max. version = {}".format( max_version ) )
                if max_version is not None :
                    src = "{}{}{}.{}".format( dir, os.sep, dir, max_version )
                    rename( src, sra_data_file, verbose )
                    src = "{}{}{}.vdbcache.{}".format( dir, os.sep, dir, max_version )
                    if os.path.isfile( src ) :
                        rename( src, sra_cache_file, verbose )
    else :
        if verbose :
            print( 'directory "{}" does not exist'.format( dir ) )