mirror of
https://github.com/amark/gun.git
synced 2025-03-30 15:08:33 +00:00
don't rebuild file index (?)
This commit is contained in:
parent
80159888fb
commit
08fc562eac
@ -253,6 +253,7 @@
|
||||
file = (u === file)? u : decodeURIComponent(file);
|
||||
tmp = o.next || key || (o.reverse? o.end || '\uffff' : o.start || '');
|
||||
if(!file || (o.reverse? file < tmp : file > tmp)){
|
||||
console.only(2, 'RAD LEX:', JSON.stringify(tmp), 'in', JSON.stringify(g.file), !file, JSON.stringify(file) > JSON.stringify(tmp), file > tmp, JSON.stringify(file), o);
|
||||
LOG && opt.log(S, +new Date - S, 'rad read lex'); S = +new Date;
|
||||
if(o.next || o.reverse){ g.file = file }
|
||||
if(tmp = Q[g.file]){
|
||||
@ -449,7 +450,7 @@
|
||||
}
|
||||
if(disk){
|
||||
r.list.drain(disk);
|
||||
//return;
|
||||
return;
|
||||
}
|
||||
if(!opt.store.list){
|
||||
r.list.drain(Radix());
|
||||
@ -457,7 +458,6 @@
|
||||
}
|
||||
// import directory.
|
||||
opt.store.list(function(file){
|
||||
console.log("--------", JSON.stringify(file));
|
||||
dir = dir || Radix();
|
||||
if(!file){ return r.list.drain(dir) }
|
||||
r.list.add(file, noop);
|
||||
|
Loading…
x
Reference in New Issue
Block a user