Open
Description
I think os.expandvars
needs to be called before abspath
in the opener.
Example:
from fs import open_fs
>>> open_fs("~")
OSFS('/Users/tf')
>>> open_fs("$HOME")
...[snip]...
fs.errors.CreateFailed: root path '/Users/tf/Desktop/Users/tf' does not exist
I found the same unintuitive behavior on windows (open_fs("%USERPROFILE%")
).
The user profile path is appended to the current working dir.