Opening a file in a directory named "tcp" or "http" should be handled.
Possible fix
Change lines 52 and 64 in open_async.py, and lines 33 and 39 in open_sync.py, to check for "http://" and "tcp://" rather than "http" and "tcp" at the beginning of the line. The check for ccall already follows this format.
Describe the issue
Opening a file in a directory called "tcp" (and presumably "http" after looking at the code) raises an exception.
How to reproduce?
Asciinema link here: https://asciinema.org/a/2UqHIBaaVHD1cCjsGWI7MA5po
Expected behavior
Opening a file in a directory named "tcp" or "http" should be handled.
Possible fix
Change lines 52 and 64 in open_async.py, and lines 33 and 39 in open_sync.py, to check for "http://" and "tcp://" rather than "http" and "tcp" at the beginning of the line. The check for
ccall
already follows this format.