exasol / bucketfs-python

BucketFS utilities for the Python programming language
https://exasol.github.io/bucketfs-python
MIT License
1 stars 1 forks source link

Wrong assumption of a path in a bucket always having subdirectories #77

Closed ahsimb closed 4 months ago

ahsimb commented 11 months ago

Summary

If a bucket url points to the bucket root then the line below fails

            base_path_in_bucket = PurePosixPath(url_path.parts[2]).joinpath(
                *url_path.parts[3:]
            )

This is in the BucketFSFactory.create_bucketfs_location in bucketfs_factory.py at the time of writing in the line 45. See here.

Related Issues

Nicoretti commented 10 months ago

This is in the BucketFSFactory.create_bucketfs_location in bucketfs_factory.py at the time of writing in the line 45.

@ahsimb Side note: GitHub supports adding permalinks to source code locations (I have added one).

Nicoretti commented 10 months ago

This is an issue of the legacy api, imho this should be addressed by implementing https://github.com/exasol/bucketfs-python/issues/42.

tkilias commented 4 months ago

With https://github.com/exasol/bucketfs-python/issues/114 we have subpath handling in the new API. In the next weeks, we will replace the usage of the old API in our projects. This makes the old API obsolete. For that reason, we won't fix this bug.