kszucs commented on code in PR #45089:
URL: https://github.com/apache/arrow/pull/45089#discussion_r2177738317
##########
python/pyarrow/_fs.pyx:
##########
@@ -436,12 +468,19 @@ cdef class FileSystem(_Weakrefable):
----------
uri : string
URI-based path, for example: file:///some/local/path.
+ treat_path_as_prefix : bool, default False
+ If True, the path component of the URI is treated as a prefix
+ inside the FileSystem instance. This means that all operations
+ will be relative to this prefix, and the prefix must point to a
+ directory. If False, the path component is treated as an abstract
+ path inside the FileSystem instance.
Returns
-------
- tuple of (FileSystem, str path)
- With (filesystem, path) tuple where path is the abstract path
- inside the FileSystem instance.
+ tuple of (FileSystem, str path) or FileSystem
Review Comment:
That is bothering me a little bit as well, moving the prefix part back to
fs.py.
--
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]