jorisvandenbossche commented on a change in pull request #11447:
URL: https://github.com/apache/arrow/pull/11447#discussion_r731520373
##########
File path: python/pyarrow/_fs.pyx
##########
@@ -833,6 +833,12 @@ cdef class SubTreeFileSystem(FileSystem):
FileSystem.init(self, wrapped)
self.subtreefs = <CSubTreeFileSystem*> wrapped.get()
+ def __str__(self):
+ return f'SubTreeFileSystem: file:{self.base_path}'
Review comment:
I suppose this can be a general URI as well (eg since you can use it
with S3). In any case it's good to not use `file:` because also for local file
paths that would be confusing (it results in `file:/base/`, which looks like a
URI, but is not a valid one).
The repr uses `base_path=`. Maybe we can do the same here?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]