Steve Nyemba 1 year ago
parent
commit
7d29a69a23
1 changed files with 4 additions and 0 deletions
  1. 4 0
      transport/nextcloud.py

+ 4 - 0
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):