def METHOD_NAME(path):
    lpath = "/".join(cwd)
    make_new_dir(lpath)
    os.chdir(lpath)
    # Create a new archive with core & more.
    metafiles = cfg.get_dict()["metadata_files_in_archive"]
    fname = os.path.basename(path)
    tarf_name = fname + ".tar.gz"
    cfg.get_core_info(path, hostname)
    tar = tarfile.open(tarf_name, "w:gz")
    for e in metafiles:
        tar.add(metafiles[e])
    tar.add(path)
    tar.close()
    logger.log_debug("Tar file for upload created: " + tarf_name)
    Handler.upload_file(tarf_name, tarf_name, path)
    logger.log_debug("File uploaded - " + path)
    os.chdir(INIT_CWD)