var DirectoryEntry = require('cordova/plugin/DirectoryEntry'); | |
/** | |
* An interface representing a file system | |
* | |
* @constructor | |
* {DOMString} name the unique name of the file system (readonly) | |
* {DirectoryEntry} root directory of the file system (readonly) | |
*/ | |
var FileSystem = function(name, root) { | |
this.name = name || null; | |
if (root) { | |
this.root = new DirectoryEntry(root.name, root.fullPath); | |
} | |
}; | |
module.exports = FileSystem; |