I can kinda see why this is happening in the code, but can't tell if it's intentional.
Naively, I'd expect UPath("/", protocol="memory") to be an absolute path. Especially since UPath("/foo", protocol="memory") is an absolute path, and UPath("/foo", protocol="memory").parent == UPath("/", protocol="memory").
I'd guess this is a bug, but wasn't sure if this was a side-effect of trying to generalise everything consistently, especially with regard to the memory filesystem.
Similarly, UPath(".").name == "" which makes sense to me, but UPath(".", protocol="memory").name == '.' . Was this an intentional decision or is it a bug?
Thanks in advance!
I can kinda see why this is happening in the code, but can't tell if it's intentional.
Naively, I'd expect
UPath("/", protocol="memory")to be an absolute path. Especially sinceUPath("/foo", protocol="memory")is an absolute path, andUPath("/foo", protocol="memory").parent == UPath("/", protocol="memory").I'd guess this is a bug, but wasn't sure if this was a side-effect of trying to generalise everything consistently, especially with regard to the
memoryfilesystem.Similarly,
UPath(".").name == ""which makes sense to me, butUPath(".", protocol="memory").name == '.'. Was this an intentional decision or is it a bug?Thanks in advance!