non-existent files have size 0

pull/1/head
ansuz 8 years ago
parent a57f8679c5
commit 100cc1792a

@ -336,8 +336,13 @@ var getMultipleFileSize = function (Env, channels, cb) {
channels.forEach(function (channel) { channels.forEach(function (channel) {
getFileSize(Env, channel, function (e, size) { getFileSize(Env, channel, function (e, size) {
if (e) { if (e) {
WARN('getFileSize', e); // most likely error here is that a file no longer exists
counts[channel] = -1; // 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(); return done();
} }
counts[channel] = size; counts[channel] = size;

Loading…
Cancel
Save