def dump_files(directory, output, **feature_dict):
    paths = get_path_list(directory)
    total = len(paths)
    for (i, path) in enumerate(paths):
        sys.stdout.write('\r{}: {}/{}'.format(directory, (i + 1), total))
        sys.stdout.flush()
        output_path = os.path.join(output, path)
        if (not os.path.exists(output_path)):
            os.makedirs(output_path)
        features = dump_file(path, **feature_dict)
        for (name, data) in features.items():
            dump_output(os.path.join(output, path, name), data[0])
def dump_files(directory, output, **feature_dict):
    paths = get_path_list(directory)
    total = len(paths)
    for (i, path) in enumerate(paths):
        sys.stdout.write('\r{}: {}/{}'.format(directory, (i + 1), total))
        sys.stdout.flush()
        output_path = os.path.join(output, path)
        if (not os.path.exists(output_path)):
            os.makedirs(output_path)
        features = dump_file(path, **feature_dict)
        for (name, data) in features.items():
            dump_output(os.path.join(output, path, name), data[0])