From b5cf7d61527c8ca4d490e01e2d151fae5666d60d Mon Sep 17 00:00:00 2001
From: vermeul <swen@ethz.ch>
Date: Fri, 5 Jul 2019 16:43:58 +0200
Subject: [PATCH] removed FileListHandler, as files should be obtained by the
 api

---
 jupyter-openbis-extension/dataset.py | 30 ----------------------------
 1 file changed, 30 deletions(-)

diff --git a/jupyter-openbis-extension/dataset.py b/jupyter-openbis-extension/dataset.py
index 3fefdda..8b7713d 100644
--- a/jupyter-openbis-extension/dataset.py
+++ b/jupyter-openbis-extension/dataset.py
@@ -249,33 +249,3 @@ class DataSetUploadHandler(IPythonHandler):
         self.upload_data(conn=conn,data=data)
 
 
-class FileListHandler(IPythonHandler):
-
-    def get(self, **params):
-        """
-        Returns the file list of the current directory (relative to the CWD)
-
-        :param params:
-        :return: dictionary of files, key is the fully qualified name,
-                 value is the relative name (for display)
-        """
-
-        path = ""
-        if 'path' in params:
-            path = params['path']
-
-        look_in_path = os.path.join(os.getcwd(), path)
-        files = {}
-
-        for file in os.scandir(look_in_path):
-            files[file.path] = {
-                "name": file.name,
-                "is_dir": file.is_dir(),
-                "size": file.stat().st_size
-            }
-
-        self.set_status(200)
-        self.write({
-            "files": files
-        })
-
-- 
GitLab