Stackedit/public/res/fileSystem.js
2013-10-06 21:26:11 +01: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;
});