Example #1
0
def run_interactive():
    print "rescache is a tool for verifying and managing the EVE shared resource cache."
    print
    print "The current shared cache location is\n\t%s" % get_shared_cache_folder()
    print

    res_folder = os.path.join(get_shared_cache_folder(), "ResFiles")
    index = _get_index(DEFAULT_INDEX_FILENAME)

    print "Verifying cache integrity"
    corrupt, missing = verify_cache(index, res_folder)
    print

    if corrupt:
        print "%d corrupt files were deleted" % corrupt

    if missing:
        answer = raw_input("Would you like to download missing files now? (y/n)")
        if answer.lower().startswith("y"):
            download_cache(index, res_folder)

    raw_input("Press ENTER to exit...")
Example #2
0
def run_interactive():
    print "rescache is a tool for verifying and managing the EVE shared resource cache."
    print
    print "The current shared cache location is\n\t%s" % get_shared_cache_folder(
    )
    print

    res_folder = os.path.join(get_shared_cache_folder(), "ResFiles")
    index = _get_index(DEFAULT_INDEX_FILENAME)

    print "Verifying cache integrity"
    corrupt, missing = verify_cache(index, res_folder)
    print

    if corrupt:
        print "%d corrupt files were deleted" % corrupt

    if missing:
        answer = raw_input(
            "Would you like to download missing files now? (y/n)")
        if answer.lower().startswith("y"):
            download_cache(index, res_folder)

    raw_input("Press ENTER to exit...")
Example #3
0
def download_command(args):
    download_cache(_get_index(args.index, args.dir), _get_res_folder(args))
Example #4
0
def download_command(args):
    download_cache(_get_index(args.index), _get_res_folder(args))