Commit 8e678c0
committed
Fix CloudPath import
- Use _pathlib.CloudPath instead of cloudpathlib.CloudPath. The import here already has a bunch of logic baked in to check and fallback the pathtype if cloudpathlib isn't available.
- For the conditional logic, make use of the cloudpathlib_is_available function to step into check
- TODO: Add tests to make sure cloudpathlib functionality is working as expected1 parent f3d111c commit 8e678c0
1 file changed
Lines changed: 2 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
19 | 18 | | |
20 | 19 | | |
21 | 20 | | |
| |||
24 | 23 | | |
25 | 24 | | |
26 | 25 | | |
27 | | - | |
| 26 | + | |
28 | 27 | | |
29 | 28 | | |
30 | 29 | | |
| |||
404 | 403 | | |
405 | 404 | | |
406 | 405 | | |
407 | | - | |
| 406 | + | |
408 | 407 | | |
409 | 408 | | |
410 | 409 | | |
| |||
0 commit comments