I know that using special characters in path names is asking for trouble, but I like to prefix active projects with an exclamation mark (!) because it makes them show up at the top when ordered alphabetically. This is incredibly useful when you have a lot of projects.
As a result, I found this by accident while playing with a downstream library:
>>> import fs
>>> fs.__version__
'2.4.16'
>>> weird_path = 'C:\\Users\\Sebastian\\Documents\\Coding-Projects\\!deploy_test\\foo'
>>> fs.open_fs(weird_path)
OSFS('C:\\Users\\Sebastian\\Documents\\Coding-Projects')
However, running the same using a relative path resolves as expected:
>>> import os
>>> os.getcwd()
'C:\\Users\\Sebastian\\Documents\\Coding-Projects\\!deploy_test'
>>> fs.open_fs("./foo")
OSFS('C:\\Users\\Sebastian\\Documents\\Coding-Projects\\!deploy_test\\foo')
Is there a workaround for this behavior? I'm eager to have this fixed quickly, so if there is no workaround I could attempt a PR assuming this would lead to a reasonably fast release of the bugfix :)
I know that using special characters in path names is asking for trouble, but I like to prefix active projects with an exclamation mark (
!) because it makes them show up at the top when ordered alphabetically. This is incredibly useful when you have a lot of projects.As a result, I found this by accident while playing with a downstream library:
However, running the same using a relative path resolves as expected:
Is there a workaround for this behavior? I'm eager to have this fixed quickly, so if there is no workaround I could attempt a PR assuming this would lead to a reasonably fast release of the bugfix :)