cacheReady = true;
}
+ function setVirtualPath(name, path, type, state) {
+ initCache();
+ cacheVirtualToReal[name] = { path: path, label: name, type: type, state: state };
+ console.log('name : ' + name + ', setVirtualPath : ' + cacheVirtualToReal[name]);
+ }
+
function mergeMultipleSlashes(str) {
var retStr = str.replace(/(^(file\:\/\/\/)|^(file\:\/\/)|\/)\/{0,}/g, '$1');
return retStr;
f_isCorrectRelativePath: f_isCorrectRelativePath,
getStorage: getStorage,
getAllStorages: getAllStorages,
- mergeMultipleSlashes: mergeMultipleSlashes
+ mergeMultipleSlashes: mergeMultipleSlashes,
+ setVirtualPath : setVirtualPath
};
})();
removeStorageStateChangeListener.apply(this, arguments);
};
+FileSystemManager.prototype.setVirtualPath = function(name, path, type, state) {
+ commonFS_.setVirtualPath(name, path, type, state);
+};
+
exports = new FileSystemManager();