You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Doing the same with OSFP leads to a ResourceInvalidError
handle = OSFS('/tmp/path/to/foo.txt')
So the behavior is different and inconsistent across the underlaying drivers. Not sure what the right behavior would be. I guess that the behavior of OSFS is correct. The constructors should accept only URLs pointing to a folder or a collection and raise ResourceInvalidError otherwise.
The text was updated successfully, but these errors were encountered:
Using DAVFS I can point the connection to a resource rather than a directory and read the resource like this:
handle = DAVFS('https:/.../path/to/foo.txt')
fp = handle.open('.')
print fp.read()
.....
Doing the same with OSFP leads to a ResourceInvalidError
handle = OSFS('/tmp/path/to/foo.txt')
So the behavior is different and inconsistent across the underlaying drivers. Not sure what the right behavior would be. I guess that the behavior of OSFS is correct. The constructors should accept only URLs pointing to a folder or a collection and raise ResourceInvalidError otherwise.
The text was updated successfully, but these errors were encountered: