Skip to content

Developer friendly: tell me which root path cannot be opened. #340

Closed
@chfw

Description

@chfw

Hi all

It would be very helpful to display the root path, for which osfs cannot open it. I knew you would argue, "please add break point or print it, dude". What I am facing here is: MacOS, Linux and Linux system path here. I do not have always three OS at the same time. If OSFS would be nicely to tell what is the root path, it will save me a lot time in taking the assumed advice: adding break point or print it.

I am sending a PR through.

https://dev.azure.com/moremoban/moban/_build/results?buildId=670

Traceback (most recent call last):
  File "c:\hostedtoolcache\windows\python\3.7.4\x64\lib\site-packages\nose\case.py", line 198, in runTest
    open_fs = opener.open_fs(fs_url, parse_result, writeable, create, cwd)
  File "D:\a\1\s\moban\fs_openers.py", line 68, in open_fs
    osfs = EnhancedOSFS(path, create=create)
  File "c:\hostedtoolcache\windows\python\3.7.4\x64\lib\site-packages\fs\osfs.py", line 140, in __init__
    raise errors.CreateFailed("root path does not exist")

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions