15 lines
372 B
JavaScript
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;
|
|
}); |