Alex A. Naanou de768104b5 started work on file loader...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
2014-12-10 19:59:05 +03:00

46 lines
1.0 KiB
JavaScript
Executable File

/**********************************************************************
*
*
*
**********************************************************************/
var glob = require('glob')
var path = require('path')
define(function(require){ var module = {}
console.log('>>> file')
//var DEBUG = DEBUG != null ? DEBUG : true
var tasks = require('lib/tasks')
/*********************************************************************/
var INDEX_DIR = '.ImageGrid'
/*********************************************************************/
// things we need...
// - load latest by pattern
// - merge
// - load latest base
// - merge diffs later than base
// - find index(s) in subtree
// - load index
// - data version
// - join indexes
// - take care of different base paths in images
//
function listIndexes(base){
return glob(base +'/**/'+ INDEX_DIR)
}
/**********************************************************************
* vim:set ts=4 sw=4 : */
return module })