emscripten Humble Cloud interface
Edward Rudd
2014-08-21 b491d404761f8ff4d763f9caec4cd6651b6d0082

also parse the date in the provider

2 files modified
10 ■■■■ changed files
client/library/library_cloudfs.js 8 ●●●● patch | view | raw | blame | history
humble_cloud/urkle_cloud.js 2 ●●● patch | view | raw | blame | history
client/library/library_cloudfs.js
@@ -96,8 +96,8 @@
            var entries = {},
                toAbsolute = function(p) { return PATH.join2(mount.mountpoint, p); };
            for(var k in data) {
              var f = data[k],
                  timestamp = new Date(f.timestamp);
              var f = data[k];
              if (f.path.indexOf('/') !== -1) {
                  // we have folders.. stuff them in the list
                  var parts = f.path.split('/'),
@@ -114,7 +114,7 @@
                          entries[abs] = {
                              path: p,
                              type: 'dir',
                              timestamp: timestamp
                              timestamp: f.timestamp
                          };
                      }
                      prefix = p;
@@ -125,7 +125,7 @@
                url: f.url,
                path: f.path.trim('/'),
                type: 'file',
                timestamp: timestamp,
                timestamp: f.timestamp,
                size: f.size
              };
            }
humble_cloud/urkle_cloud.js
@@ -31,7 +31,7 @@
                    if (f.url.substr(0, 1) == '/') {
                        f.url = settings.remoteAPIEndpoint + f.url;
                    }
                    f.timestamp = parseInt(f.timestamp);
                    f.timestamp = new Date(parseInt(f.timestamp));
                    return f;
                });
                onsuccess(ret)