question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

2021.06.0 regression: support for path-like objects are broken

See original GitHub issue

Reproducer;

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:closed
  • Created 2 years ago
  • Comments:6 (6 by maintainers)

github_iconTop GitHub Comments

2reactions
martindurantcommented, Jun 10, 2021

Yes, I will shortly.

1reaction
martindurantcommented, Jun 23, 2021

done

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found