Commit e9a9b12
committed
Add exception for swift in fsspec path handling
http(s) and swift filesystems need the scheme in the path.
This commit adds a special case for the swift filesystem,
when checking for the scheme presence.
Also remove one if for the http(s) schemes. Here all schemes can
call fs._strip_protocol(path). For the filesystems that
need the scheme in the path, this function will not remove it.1 parent a0c56fb commit e9a9b12
1 file changed
Lines changed: 3 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
139 | 139 | | |
140 | 140 | | |
141 | 141 | | |
142 | | - | |
143 | | - | |
| 142 | + | |
| 143 | + | |
144 | 144 | | |
145 | 145 | | |
146 | 146 | | |
| |||
247 | 247 | | |
248 | 248 | | |
249 | 249 | | |
250 | | - | |
251 | | - | |
252 | | - | |
253 | | - | |
254 | | - | |
| 250 | + | |
255 | 251 | | |
256 | 252 | | |
257 | 253 | | |
| |||
0 commit comments