mirror of
https://github.com/flynx/ImageGrid.git
synced 2025-10-29 18:30:09 +00:00
started reworking the loader...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
2690654695
commit
6eb8701145
@ -540,7 +540,6 @@ function(path, index_dir, from_date, logger){
|
|||||||
var res = {}
|
var res = {}
|
||||||
var loaders = []
|
var loaders = []
|
||||||
|
|
||||||
// XXX handle 'error' event...
|
|
||||||
listIndexes(path, index_dir)
|
listIndexes(path, index_dir)
|
||||||
// XXX handle errors...
|
// XXX handle errors...
|
||||||
.on('error', function(err){
|
.on('error', function(err){
|
||||||
@ -549,6 +548,10 @@ function(path, index_dir, from_date, logger){
|
|||||||
})
|
})
|
||||||
// collect the found indexes...
|
// collect the found indexes...
|
||||||
.on('match', function(path){
|
.on('match', function(path){
|
||||||
|
// XXX after finding an index, need to prevent loading of
|
||||||
|
// any indexes in that sub tree...
|
||||||
|
// shortest unique path blocks all children.
|
||||||
|
// XXX
|
||||||
loaders.push(loadIndex(path, index_dir, from_date, logger)
|
loaders.push(loadIndex(path, index_dir, from_date, logger)
|
||||||
.then(function(obj){
|
.then(function(obj){
|
||||||
// NOTE: considering that all the paths within
|
// NOTE: considering that all the paths within
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user