Live data from Hacker News

Show HN: PyFilesystem 2.0 – A Python interface to filesystems of all kinds

willmcgugan.com

21–22 of 22 posts

Re: Show HN: PyFilesystem 2.0 – A Python interface to filesystems of all kinds

#21
post #16

Earlier quoted context omitted.

Maybe have a proxy https://pypi.python.org/pypi/pyfilesystem that has `fs` as a requirement? That way even if people install with `pip install pyfilesystem`, you're good.

Hmm. That's an idea. Feels like a hack though. Do you know if there is a precedence for that?

If you run pip install py.test it fails with a message that you should run pip install pytest.

Re: Show HN: PyFilesystem 2.0 – A Python interface to filesystems of all kinds

#22
post #20

Would this work with any object implementing the PathLike interface introduced in Python 3.6 ?

You generally won't need to. PyFilesystem hides the differences between paths from you (https://pyfilesystem2.readthedocs.io/en/latest/concepts.html...).

An exception would be in the constructor for OSFS Objects, which take a system path. I'll look in to adding support there...

Post reply on HN