From d374a210bf3b2cccbc2cadc3f5ecfcb5a5033bb6 Mon Sep 17 00:00:00 2001 From: Martin Durant Date: Mon, 19 Jul 2021 09:40:44 -0400 Subject: [PATCH] for anon --- gdrivefs/core.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/gdrivefs/core.py b/gdrivefs/core.py index d219029..4e0f773 100644 --- a/gdrivefs/core.py +++ b/gdrivefs/core.py @@ -14,7 +14,7 @@ DIR_MIME_TYPE = 'application/vnd.google-apps.folder' fields = ','.join(['name', 'id', 'size', 'description', 'trashed', 'mimeType', - 'version', 'createdTime', 'modifiedTime']) + 'version', 'createdTime', 'modifiedTime', 'capabilities']) def _normalize_path(prefix, name): @@ -69,7 +69,8 @@ def __init__(self, root_file_id=None, token="browser", self.spaces = spaces self.root_file_id = root_file_id or 'root' self.connect(method=token) - self.ls("") + if token != "anon": + self.ls("") def connect(self, method=None): if method == 'browser':