Commit 00924c1
authored
Support relative paths (#405)
* tests: add relative path tests
* upath: initial relative path implementation
* tests: adjust relative_to tests
* Various fixes for windows and typesafety
* upath: don't make cwd() abstract in mixin
* upath: as_uri() for relative paths
* upath: add tests for file access on relative paths
* upath: relative path drive,root,anchor fixes
* upath: more relative path tests
* tests: fix typo in relative path suffixes test
* tests: add .parent tests for relative paths
* upath: repr for relative paths
* tests: relpath tests for parent(s), protocol, storage_options, path, fs and home
* tests: parser and resolve tests
* tests: add tests for relative path .match
* tests: add tests for joinpath
* upath: return dynamically created subclasses for untested protocols
* upath: fix relative-path support for with_segments
* upath: fix __vfspath__ for relative paths
* upath: fix parent for relative paths
* upath: .parents implementation for relative paths
* upath: fix FilePath.cwd() and FilePath.home()
* upath: fix pickling of dynamically created classes
* tests: fix .cwd and .home tests in core
* upath: fix remaining relative path tests
* tests: fix windows path separator comparisons
* tests: fix file uri comparison
* tests: relative joinpath fix windows separator comparison
* upath.implementations.cloud: fix GCSPath.exists() for gcsfs<2025.5.0
* tests: add mulitple join tests for different local/fsspec combinations
* upath: fix joinpath for relative upaths
* upath: fix local joinpath stringification1 parent 87ff1fb commit 00924c1
File tree
11 files changed
+1003
-53
lines changed- upath
- implementations
- tests
- implementations
11 files changed
+1003
-53
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| 20 | + | |
20 | 21 | | |
21 | 22 | | |
22 | 23 | | |
| |||
239 | 240 | | |
240 | 241 | | |
241 | 242 | | |
| 243 | + | |
| 244 | + | |
242 | 245 | | |
243 | 246 | | |
244 | 247 | | |
245 | 248 | | |
246 | 249 | | |
247 | | - | |
| 250 | + | |
248 | 251 | | |
249 | 252 | | |
250 | 253 | | |
| |||
288 | 291 | | |
289 | 292 | | |
290 | 293 | | |
291 | | - | |
| 294 | + | |
292 | 295 | | |
293 | 296 | | |
294 | 297 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
105 | 105 | | |
106 | 106 | | |
107 | 107 | | |
| 108 | + | |
| 109 | + | |
108 | 110 | | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
109 | 114 | | |
110 | 115 | | |
111 | 116 | | |
| |||
0 commit comments