Several pathlib.Path methods are marked as not implemented, including is_symlink. See https://github.com/fsspec/universal_pathlib/blob/main/upath/core.py#L112-L117
Calling these methods leads to a NotImplementedError. However, in most cases (especially for object storage that don't support symlinks) the expected behavior for these is_* methods would be to return False.
I was wondering, if it would be possible to add default implementations for them that return False in the UPath class. Some subclasses could even choose to implement specific logic.
Again, happy to help with a PR!
Several
pathlib.Path
methods are marked as not implemented, includingis_symlink
. See https://github.com/fsspec/universal_pathlib/blob/main/upath/core.py#L112-L117 Calling these methods leads to aNotImplementedError
. However, in most cases (especially for object storage that don't support symlinks) the expected behavior for theseis_*
methods would be to returnFalse
.I was wondering, if it would be possible to add default implementations for them that return
False
in theUPath
class. Some subclasses could even choose to implement specific logic. Again, happy to help with a PR!