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':