Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2016-05-31 23:19:24 +03:00
parent 9f29868ff1
commit b308f6b3b7
2 changed files with 8 additions and 3 deletions

View File

@ -283,11 +283,15 @@ var FileSystemLoaderActions = actions.Actions({
})
}],
// Get images in path...
//
// This will:
// - get images from path
// - get basic stat data
// - get previews from path if they exist
//
// Returns: Images object
//
getImagesInPath: ['- File/',
function(path, read_stat, skip_preview_search, logger){
if(path == null){
@ -371,7 +375,7 @@ var FileSystemLoaderActions = actions.Actions({
// XXX use the logger...
// XXX add a recursive option...
// ...might also be nice to add sub-dirs to ribbons...
// XXX add option to preserve/update .data
// XXX add option to preserve/update .data (???)
// XXX make image pattern more generic...
loadImages: ['- File/Load images',
function(path, logger){

View File

@ -365,7 +365,7 @@ function(path, index_dir, logger){
})
.then(function(paths){
// start loading...
Promise.all(paths.map(function(p){
return Promise.all(paths.map(function(p){
//var path = pathlib.normalize(p +'/'+ index_dir)
var path = util.normalizePath(p +'/'+ index_dir)
return loadSaveHistoryList(path, index_dir)
@ -377,8 +377,9 @@ function(path, index_dir, logger){
// itself in the base path...
res[p] = obj
})
})).then(function(){ resolve(res) })
}))
})
.then(function(){ resolve(res) })
}
})
}