IBM / jupyterlab-s3-browser

A JupyterLab extension for browsing S3-compatible object storage
Apache License 2.0
119 stars 41 forks source link

Issue while renaming S3 directory in Studio #90

Open ShajuVJ opened 1 year ago

ShajuVJ commented 1 year ago

I'm using Sagemaker Studio, and trying to organise the S3 bucket contents from the sidebar. I had a directory called test/abc, right-clicked on it and pressed Rename, into test/Abc, (changed first letter from lowercase to uppercase) and while the new directory showed up, the old one is still there, with all its subdirectories, but without any files.

edgargoncalves commented 1 year ago

I also have this issue. The S3 browser doesn't support directories with upper case letters correctly. This cases certain operations such as renaming or creating files/directories on them to try and work on a lowercase version of the path, and it (1) shows an error saying the newly created/renamed files aren't there and (2) on the background, it creates the equivalent directory tree in lowercase letters. Example, on s3://bucket/mydirectory/AnotherDirectory/, if you create a new subdirectory, you get a popup error, and a new directory is created in 's3://bucket/mydirectory/anotherdirectory/Untitled Folder'. Hope this helps.

edgargoncalves commented 1 year ago

I think this might be related to the lowercase conversion here: https://github.com/IBM/jupyterlab-s3-browser/blob/master/jupyterlab_s3_browser/handlers.py#L301 .