blob: 2ae64ae727c60fc7b052738232162e5a59163a91 [file] [log] [blame]
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;