From 100cc1792a2511d4ee3ce9dfa083de1e109f6ebe Mon Sep 17 00:00:00 2001 From: ansuz Date: Tue, 13 Jun 2017 11:47:22 +0200 Subject: [PATCH] non-existent files have size 0 --- rpc.js | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/rpc.js b/rpc.js index 6e555ae4a..25b1ae550 100644 --- a/rpc.js +++ b/rpc.js @@ -336,8 +336,13 @@ var getMultipleFileSize = function (Env, channels, cb) { channels.forEach(function (channel) { getFileSize(Env, channel, function (e, size) { if (e) { - WARN('getFileSize', e); - counts[channel] = -1; + // most likely error here is that a file no longer exists + // but a user still has it in their drive, and wants to know + // its size. We should find a way to inform them of this in + // the future. For now we can just tell them it has no size. + + //WARN('getFileSize', e); + counts[channel] = 0; return done(); } counts[channel] = size;