From 7d29a69a232dec91357c69c020dfa70ec79be037 Mon Sep 17 00:00:00 2001 From: Steve Nyemba Date: Tue, 21 Nov 2023 11:01:05 -0600 Subject: [PATCH] reminder --- transport/nextcloud.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/transport/nextcloud.py b/transport/nextcloud.py index 457eb83..f096f70 100644 --- a/transport/nextcloud.py +++ b/transport/nextcloud.py @@ -45,9 +45,13 @@ class NextcloudReader(Nextcloud,Reader): _info = self._handler.file_info(_uri) _content = self._handler.get_file_contents(_uri).decode('utf8') if _info.get_content_type() == 'text/csv' : + # + # @TODO: enable handling of csv, xls, parquet, pickles _file = StringIO(_content) return pd.read_csv(_file) else: + # + # if it is neither a structured document like csv, we will return the content as is return _content return None class NextcloudWriter (Nextcloud,Writer):