Stackedit/res/fileSystem.js
2013-08-26 06:58:18 +02:00

15 lines
372 B
JavaScript

define([
"underscore",
"utils",
"classes/FileDescriptor",
"storage",
], function(_, utils, FileDescriptor) {
var fileSystem = {};
// Retrieve file descriptors from localStorage
_.each(utils.retrieveIndexArray("file.list"), function(fileIndex) {
fileSystem[fileIndex] = new FileDescriptor(fileIndex);
});
return fileSystem;
});