Returns true if the given URL looks like something fsspec can handle
(url: FilePath | BaseBuffer)
| 283 | |
| 284 | |
| 285 | def is_fsspec_url(url: FilePath | BaseBuffer) -> bool: |
| 286 | """ |
| 287 | Returns true if the given URL looks like |
| 288 | something fsspec can handle |
| 289 | """ |
| 290 | return ( |
| 291 | isinstance(url, str) |
| 292 | and bool(_FSSPEC_URL_PATTERN.match(url)) |
| 293 | and not url.startswith(("http://", "https://")) |
| 294 | ) |
| 295 | |
| 296 | |
| 297 | def _get_filepath_or_buffer( |
no test coverage detected