sciencemesh / cs3api4lab

CS3APIs Jupyterlab connector
Apache License 2.0
4 stars 11 forks source link

Getting a non existent file fails with 500 #203

Open diocas opened 1 year ago

diocas commented 1 year ago

A GET to a non existent file, on a folder that also does not exists, should not fail:

Error while reading container: /my/path/test.txt error listing container: path:"/my/path/"
    Traceback (most recent call last):
      File "/Users/dalvesde/Workspace/proj-swan/dev-qa-update/cs3api4lab/cs3api4lab/api/cs3apismanager.py", line 91, in file_exists
        cs3_container = self.file_api.read_directory(parent_path, self.cs3_config.endpoint)
      File "/Users/dalvesde/Workspace/proj-swan/dev-qa-update/cs3api4lab/cs3api4lab/api/cs3_file_api.py", line 194, in read_directory
        raise IOError(res.status.message)
    OSError: error listing container: path:"/my/path/"