* More file area utility methods/etc.

* Start adding oputil file-area --scan <areaTag> stuff
* New new ArchiveUtil.getInstance()
This commit is contained in:
Bryan Ashby 2016-10-02 21:40:37 -06:00
parent 35e7610670
commit ec716fdf2c
6 changed files with 268 additions and 24 deletions

View file

@ -67,6 +67,8 @@ exports.getModule = class FileAreaList extends MenuModule {
this.filterCriteria = this.filterCriteria || {
// :TODO: set area tag - all in current area by default
};
this.currentFileEntry = new FileEntry();
}
enter() {
@ -139,9 +141,7 @@ exports.getModule = class FileAreaList extends MenuModule {
function fetchEntryData(callback) {
return self.loadFileIds(callback);
},
function loadCurrentFileInfo(callback) {
self.currentFileEntry = new FileEntry();
function loadCurrentFileInfo(callback) {
self.currentFileEntry.load( self.fileList[ self.fileListPosition ], err => {
return callback(err);
});