From 9156785334abad548b9f2190a820f3f2fb3990f3 Mon Sep 17 00:00:00 2001 From: Teddy Reed Date: Mon, 9 Nov 2015 20:27:55 -0800 Subject: [PATCH] Check for missing downloadUrl --- libgrive/src/drive2/Entry2.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libgrive/src/drive2/Entry2.cc b/libgrive/src/drive2/Entry2.cc index 9e9ce7a..75f7d96 100644 --- a/libgrive/src/drive2/Entry2.cc +++ b/libgrive/src/drive2/Entry2.cc @@ -66,7 +66,7 @@ void Entry2::Update( const Val& item ) m_is_removed = file["labels"]["trashed"].Bool() ; if ( !m_is_dir ) { - if ( !file.Has( "md5Checksum" ) ) + if ( !file.Has( "md5Checksum" ) || !file.Has("downloadUrl") ) { // This is either a google docs document or a not-yet-uploaded file. Ignore it. // FIXME: We'll need to compare timestamps to support google docs.