var cacheReady = false;
var listenerRegistered = false;
var cacheVirtualToReal = {};
+ var userVirtual = {};
var cacheStorages = [];
var uriPrefix = 'file://';
// special condition for previous versions paths
// (global paths usage issue workaround)
initHomeDir();
+ for (var name in userVirtual) {
+ cacheVirtualToReal[name] = userVirtual[name];
+ }
+
var result = native_.callSync('FileSystemManagerFetchStorages', {});
if (native_.isFailure(result)) {
throw native_.getErrorObject(result);
function setVirtualPath(name, path, type, state) {
initCache();
cacheVirtualToReal[name] = { path: path, label: name, type: type, state: state };
+ userVirtual[name] = { path: path, label: name, type: type, state: state };
}
function mergeMultipleSlashes(str) {