jupyterlab-s3-browser icon indicating copy to clipboard operation
jupyterlab-s3-browser copied to clipboard

Issue while renaming S3 directory in Studio

Open ShajuVJ opened this issue 2 years ago • 2 comments

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.

ShajuVJ avatar Oct 21 '22 10:10 ShajuVJ

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 avatar Nov 25 '22 09:11 edgargoncalves

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 .

edgargoncalves avatar Nov 25 '22 10:11 edgargoncalves