2021.06.0 regression: support for path-like objects are broken
See original GitHub issueReproducer;
import os
import fsspec
from pathlib import Path
fs = fsspec.filesystem("file")
path = Path('/tmp/c.txt')
path.write_text('kitten')
print(fs.exists(path))
print(fs.exists(os.fspath(path)))
2021.05.0:
True
True
master:
False
True
Issue Analytics
- State:
- Created 2 years ago
- Comments:6 (6 by maintainers)
Top Results From Across the Web
fsspec Documentation - Read the Docs
Keeps file object open while instance lives. It only works in seekable file-like objects. In case the filesystem does not support this kind...
Read more >Changelog - Dask documentation
Introduced new HighLevelGraph layer objects including BasicLayer , Blockwise , BlockwiseIO , ShuffleLayer , and more. Added support for applying custom Layer - ......
Read more >Support bytes and os.PathLike and filesystem encoding using ...
Describe the issue Currently only str and PathLib objects are supported as file_path, but any PathLike, bytes or str should work.
Read more >pathlib — Object-oriented filesystem paths — Python 3.11.1 ...
Source code: Lib/pathlib.py This module offers classes representing filesystem paths with semantics appropriate for different operating systems.
Read more >11.2. os.path — Common pathname manipulations
Changed in version 3.6: Accepts a path-like object for path and paths. Normalize the case of a pathname. On Unix and Mac OS...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Yes, I will shortly.
done