12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455 |
-
-
- var DirectoryEntry = require('./DirectoryEntry');
-
-
- var FileSystem = function (name, root) {
- this.name = name;
- if (root) {
- this.root = new DirectoryEntry(root.name, root.fullPath, this, root.nativeURL);
- } else {
- this.root = new DirectoryEntry(this.name, '/', this);
- }
- };
-
- FileSystem.prototype.__format__ = function (fullPath, nativeUrl) {
- return fullPath;
- };
-
- FileSystem.prototype.toJSON = function () {
- return '<FileSystem: ' + this.name + '>';
- };
-
-
- FileSystem.encodeURIPath = function (path) {
-
-
- return encodeURI(path).replace(/#/g, '%23');
- };
-
- module.exports = FileSystem;
|