From fba3346640c03371c2feea76bd105bb2274c6ae1 Mon Sep 17 00:00:00 2001 From: Hong Ooi Date: Thu, 6 May 2021 17:22:44 +1000 Subject: [PATCH] more robust is_folder logic --- R/ms_drive_item.R | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/R/ms_drive_item.R b/R/ms_drive_item.R index 59061c7..f6700e9 100644 --- a/R/ms_drive_item.R +++ b/R/ms_drive_item.R @@ -150,7 +150,8 @@ public=list( is_folder=function() { - !is.null(self$properties$folder) + children <- self$properties$folder$childCount + !is.null(children) && !is.na(children) }, open=function()