fn add_index(file: File, version: String, path: String) {
    let index = index(file, version, path);
    let indexes = get_indexes();
    let mut indexes_vector = indexes.indexes;
    indexes_vector.push(index);
    let indexes_new = Indexes::new(indexes_vector);
    write_indexes(indexes_new);
}
// Apis to add and indexes to json
Apis to add and indexes to json
Apis to add and indexes to json
fn add_index(file: File, version: String, path: String) {
    let index = index(file, version, path);
    let indexes = get_indexes();
    let mut indexes_vector = indexes.indexes;
    indexes_vector.push(index);
    let indexes_new = Indexes::new(indexes_vector);
    write_indexes(indexes_new);
}
fn add_index ( file : File , version : String , path : String ) { let index = index ( file , version , path ) ; let indexes = get_indexes ( ) ; let mut indexes_vector = indexes . indexes ; indexes_vector . push ( index ) ; let indexes_new = Indexes :: new ( indexes_vector ) ; write_indexes ( indexes_new ) ; }
Apis to add and indexes to json
Apis to add and indexes to json
file
File
version
String
path
String