You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: doc/design/bucketpath.rst
+26-26Lines changed: 26 additions & 26 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,8 +8,8 @@ Problem Description
8
8
Users of the BucketFS file system need to use it in various diffrent contexts like, from the outside of the
9
9
DB interacting with bucketfs, from within the DB when accessing BucketFS paths from within UDFs.
10
10
Also common actions/tasks like listing a directory are pretty tedious when just interacting with
11
-
the BucketFS API due to the fact that it does not know the concept of directories. So in
12
-
order to simplify and streamline frequently used path operations and also provide a uniform
11
+
the BucketFS API due to the fact that it does not know the concept of directories. So in
12
+
order to simplify and streamline frequently used path operations and also provide a uniform
13
13
interface accross the actual system (local path, http, ...) behind the BucketFS path we need
14
14
to have an abstraction for the user.
15
15
@@ -38,7 +38,7 @@ Challenges with Current BucketFS Interactions
38
38
Proposed Solution
39
39
=================
40
40
41
-
To address the identified issues with BucketFS interactions, we propose adding an abstraction layer that simplifies and standardizes these interactions across different contexts and operations. This approach is based on the design of the `pathlib` module in the Python standard library, which abstracts filesystem access across operating systems.
41
+
To address the identified issues with BucketFS interactions, we propose adding an abstraction layer that simplifies and standardizes these interactions across different contexts and operations. This approach is based on the design of the `pathlib` module in the Python standard library, which abstracts filesystem access across operating systems.
42
42
43
43
Our proposed path abstraction layer will:
44
44
@@ -152,50 +152,50 @@ Pathlike
152
152
classPathlike(Protocol):
153
153
154
154
@property
155
-
def name:
155
+
defname(self) -> str:
156
156
"""
157
157
A string representing the final path component, excluding the drive and root, if any.
158
158
"""
159
159
160
160
@property
161
-
def suffix:
161
+
defsuffix(self) -> str:
162
162
"""
163
163
The file extension of the final component, if any.
164
164
"""
165
165
166
166
@property
167
-
def root:
167
+
defroot(self) -> str:
168
168
"""
169
169
A string representing the root, if any.
170
170
"""
171
171
172
172
@property
173
-
def parent:
173
+
defparent(self) -> PathLike:
174
174
"""
175
175
The logical parent of this path.
176
176
"""
177
177
178
-
defas_uri():
178
+
defas_uri(self) -> str:
179
179
"""
180
180
Represent the path as a file URI. Can be used to reconstruct the location/path.
181
181
"""
182
182
183
-
defexists():
183
+
defexists(self) -> bool:
184
184
"""
185
185
Return True if the path points to an existing file or directory.
186
186
"""
187
187
188
-
defis_dir():
188
+
defis_dir(self) -> bool:
189
189
"""
190
190
Return True if the path points to a directory, False if it points to another kind of file.
191
191
"""
192
192
193
-
defis_file():
193
+
defis_file(self) -> bool:
194
194
"""
195
195
Return True if the path points to a regular file, False if it points to another kind of file.
0 commit comments